Skip to content

Commit

Permalink
Add CI for ps2
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolf3s committed Sep 10, 2024
1 parent 10795f3 commit f6028b8
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ on:
pull_request:
branches-ignore:
- build_windows_dependencies

jobs:
build:
name: ${{ matrix.config.name }}
Expand Down Expand Up @@ -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

0 comments on commit f6028b8

Please sign in to comment.