6
0
Fork 0
workflows/.gitea/workflows/love2d-load-test.yaml

44 lines
1.1 KiB
YAML

name: LÖVE Game Load Test
on:
workflow_call:
secrets:
PIPELINE_WORKER_SSH_KEY:
type: string
required: true
PIPELINE_WORKER_KNOWN_HOSTS:
type: string
required: true
PIPELINE_WORKER_USERNAME:
type: string
required: true
jobs:
game-load-test:
runs-on: ubuntu-latest
steps:
- run: apt-get update
- run: apt-get install -y fish luajit optipng ffmpeg zip rsync love
- name: Setting up SSH
uses: https://github.com/shimataro/ssh-key-action@v2.5.1
with:
key: ${{ secrets.PIPELINE_WORKER_SSH_KEY }}
name: id_rsa
known_hosts: ${{ secrets.PIPELINE_WORKER_KNOWN_HOSTS }}
config: |
Host gitfub
HostName gitfub.space
User ${{ secrets.PIPELINE_WORKER_USERNAME }}
- name: Check out repository
uses: actions/checkout@v3
# Create artifacts
- name: Building game
run: fish ${{ github.workspace }}/assemble love
- name: Trying to start game
run: |
export DISPLAY=:0
export LIBGL_ALWAYS_SOFTWARE=1
love bin/love