Skip to content

Commit f6028b8

Browse files
committed
Add CI for ps2
1 parent 10795f3 commit f6028b8

File tree

1 file changed

+34
-1
lines changed

1 file changed

+34
-1
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ on:
77
pull_request:
88
branches-ignore:
99
- build_windows_dependencies
10-
1110
jobs:
1211
build:
1312
name: ${{ matrix.config.name }}
@@ -115,3 +114,37 @@ jobs:
115114
run: |
116115
git status
117116
ls -lR build
117+
118+
build-ps2:
119+
name: PS2 build
120+
121+
runs-on: ubuntu-latest
122+
container: ps2dev/ps2dev:latest
123+
steps:
124+
- name: Install dependencies
125+
run: |
126+
apk add cmake build-base git zip gawk python3 py3-pip bash
127+
128+
- name: git checkout
129+
uses: actions/checkout@v4
130+
131+
- name: Compile PS2
132+
run: |
133+
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"
134+
cmake --build build
135+
136+
- name: Upload artifacts
137+
if: ${{ success() }}
138+
uses: actions/upload-artifact@v2
139+
with:
140+
name: prboom-plus
141+
path: build/prboom-plus.elf
142+
143+
- name: Create release
144+
if: github.ref == 'refs/heads/master'
145+
uses: marvinpinto/action-automatic-releases@latest
146+
with:
147+
repo_token: "${{ secrets.GITHUB_TOKEN }}"
148+
automatic_release_tag: "latest"
149+
title: "Latest development build"
150+
files: prboom-plus.elf

0 commit comments

Comments
 (0)