mirror of
https://github.com/gbdev/rgbds.git
synced 2026-03-25 06:13:03 +00:00
Run CI tests using CTest when possible
This commit is contained in:
9
.github/workflows/testing.yml
vendored
9
.github/workflows/testing.yml
vendored
@@ -31,7 +31,7 @@ jobs:
|
|||||||
- name: Build & install using CMake
|
- name: Build & install using CMake
|
||||||
if: matrix.buildsys == 'cmake'
|
if: matrix.buildsys == 'cmake'
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DSANITIZERS=ON -DMORE_WARNINGS=ON
|
cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=${{ matrix.cxx }} -DSANITIZERS=ON -DMORE_WARNINGS=ON -DTESTS_OS_NAME=${{ matrix.os }}
|
||||||
cmake --build build -j --verbose
|
cmake --build build -j --verbose
|
||||||
sudo cmake --install build --verbose
|
sudo cmake --install build --verbose
|
||||||
- name: Package binaries
|
- name: Package binaries
|
||||||
@@ -66,10 +66,15 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
test/fetch-test-deps.sh --get-deps ${{ matrix.os }}
|
test/fetch-test-deps.sh --get-deps ${{ matrix.os }}
|
||||||
- name: Run tests
|
- name: Run tests using our script
|
||||||
|
if: matrix.buildsys == 'make'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
CXX=${{ matrix.cxx }} test/run-tests.sh --os ${{ matrix.os }}
|
CXX=${{ matrix.cxx }} test/run-tests.sh --os ${{ matrix.os }}
|
||||||
|
- name: Run tests using CTest
|
||||||
|
if: matrix.buildsys == 'cmake'
|
||||||
|
run: |
|
||||||
|
cmake --build build --target test
|
||||||
|
|
||||||
macos-static:
|
macos-static:
|
||||||
runs-on: macos-14
|
runs-on: macos-14
|
||||||
|
|||||||
Reference in New Issue
Block a user