diff --git a/.github/workflows/build.yml b/.forgejo/workflows/build.yml similarity index 56% rename from .github/workflows/build.yml rename to .forgejo/workflows/build.yml index 2a9058d..e8a8e4e 100644 --- a/.github/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -1,26 +1,28 @@ name: Build project + on: [push, workflow_dispatch] + jobs: build: - runs-on: ubuntu-latest + runs-on: node-bookworm steps: - - name: Checkout this repo + - name: Checkout uses: actions/checkout@v4 with: - path: 'hl2sdk-starter' submodules: 'recursive' + - name: Install dependencies - run: > - sudo apt-get update && - sudo apt-get install gcc gcc-multilib g++ g++-multilib - python3 python3-pip python3-setuptools python3-wheel ninja-build && + run: | + apt-get update + apt-get install gcc gcc-multilib g++ g++-multilib + python3 python3-pip python3-setuptools python3-wheel ninja-build pip3 install --user meson + - name: Build - run: > - cd ${{ github.workspace }}/hl2sdk-starter && - ./build-matrix.sh + run: ./build-matrix.sh + - name: Upload binaries - uses: actions/upload-artifact@v4 + uses: forgejo/upload-artifact@v4 with: name: binaries_${{github.sha}} path: ${{ github.workspace }}/hl2sdk-starter/bin/*.so