commit 3e10b92c367c46e193f20998f6c9641f7eb97661 Author: Jon Michael Aanes Date: Wed Sep 27 11:32:22 2023 +0200 Initial workflows diff --git a/.gitea/workflows/love2d.yaml b/.gitea/workflows/love2d.yaml new file mode 100644 index 0000000..243a492 --- /dev/null +++ b/.gitea/workflows/love2d.yaml @@ -0,0 +1,45 @@ +name: LÖVE Game + +on: + workflow_call: + inputs: + secrets: + PIPELINE_WORKER_SSH_KEY: + required: true + PIPELINE_WORKER_KNOWN_HOSTS: + required: true + PIPELINE_WORKER_USERNAME: + required: true + +jobs: + Package: + runs-on: ubuntu-latest + steps: + - run: apt-get update + - run: apt-get install -y fish luajit optipng ffmpeg zip rsync + - 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 + - name: Creating binaries + run: fish ${{ github.workspace }}/assemble release + - name: Uploading artifacts (love) + uses: actions/upload-artifact@v3 + with: + name: "${{ github.event.repository.name }}.love" + path: "${{ github.workspace }}/bin/*.love" + if-no-files-found: error + - name: Uploading artifacts (win64) + uses: actions/upload-artifact@v3 + with: + name: "${{ github.event.repository.name }}-win64.zip" + path: "${{ github.workspace }}/bin/*-win64.zip" + if-no-files-found: error diff --git a/.gitea/workflows/lua.yaml b/.gitea/workflows/lua.yaml new file mode 100644 index 0000000..343e7ae --- /dev/null +++ b/.gitea/workflows/lua.yaml @@ -0,0 +1,16 @@ +name: Lua Project + +on: + workflow_call: + inputs: + secrets: + +jobs: + Static-Analysis: + runs-on: ubuntu-latest + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: Luacheck linter + uses: https://github.com/lunarmodules/luacheck@v1.1.1 +