diff --git a/.github/workflows/continuous_integration.yml b/.github/workflows/continuous_integration.yml index c08f77b6a..eb1dbc6f4 100644 --- a/.github/workflows/continuous_integration.yml +++ b/.github/workflows/continuous_integration.yml @@ -7,7 +7,6 @@ on: pull_request: branches-ignore: - build_windows_dependencies - jobs: build: name: ${{ matrix.config.name }} @@ -115,3 +114,37 @@ jobs: run: | git status ls -lR build + + build-ps2: + name: PS2 build + + runs-on: ubuntu-latest + container: ps2dev/ps2dev:latest + steps: + - name: Install dependencies + run: | + apk add cmake build-base git zip gawk python3 py3-pip bash + + - name: git checkout + uses: actions/checkout@v4 + + - name: Compile PS2 + run: | + cmake -S prboom2 -B build -DBUILD_GL=OFF -DSDL2_IMAGE_FOUND=ON -DSDL2_MIXER_FOUND=ON -DZLIB_FOUND=ON -DLIBMAD_FOUND=ON -DVORBIS_FOUND=ON "-DCMAKE_TOOLCHAIN_FILE=${PS2DEV}/share/ps2dev.cmake" + cmake --build build + + - name: Upload artifacts + if: ${{ success() }} + uses: actions/upload-artifact@v2 + with: + name: prboom-plus + path: build/prboom-plus.elf + + - name: Create release + if: github.ref == 'refs/heads/master' + uses: marvinpinto/action-automatic-releases@latest + with: + repo_token: "${{ secrets.GITHUB_TOKEN }}" + automatic_release_tag: "latest" + title: "Latest development build" + files: prboom-plus.elf \ No newline at end of file