Skip to content

Commit 3c6d113

Browse files
committed
Try to build and run tests.
1 parent 92c101d commit 3c6d113

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

.github/workflows/macos-build.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,20 @@ jobs:
2020
run: sudo apt-get update
2121
- name: Install dependencies
2222
run: sudo apt-get install -y g++-mipsel-linux-gnu
23-
- name: Build OpenBIOS
24-
run: make -C src/mips/openbios -j2
25-
- name: Upload results for MacOS build job
23+
- name: Build tests & OpenBIOS
24+
run: |
25+
make -C src/mips/tests -j 2 PCSX_TESTS=true
26+
make -C src/mips/openbios -j 2 clean all
27+
- name: Upload OpenBIOS for MacOS build job
2628
uses: actions/upload-artifact@v2
2729
with:
2830
name: OpenBIOS
2931
path: src/mips/openbios/openbios.bin
32+
- name: Upload tests for MacOS build job
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: Tests
36+
path: src/mips/tests/**/*.ps-exe
3037

3138
macos-build-and-test:
3239
runs-on: macOS-latest
@@ -42,12 +49,20 @@ jobs:
4249
run: git submodule update --init --recursive
4350
- name: Build pcsx-redux
4451
run: make -j2
45-
- name: Build pcsx-redux
52+
- name: Build pcsx-redux-tests
4653
run: make -j2 pcsx-redux-tests
4754
- name: Download OpenBIOS build
4855
uses: actions/download-artifact@v2
4956
with:
5057
name: OpenBIOS
58+
- name: Download tests
59+
uses: actions/download-artifact@v2
60+
with:
61+
name: Tests
62+
- name: Install xquartz for xvfb
63+
run: brew install xquartz
64+
- name: Run tests
65+
run: xvfb ./pcsx-redux-tests
5166
- name: Bundle
5267
run: ./.github/scripts/create-app.sh
5368
- name: Create BUILD environment

0 commit comments

Comments
 (0)