Skip to content

Commit

Permalink
GitHub Actions: run skeleton tests after normal tests in the same build.
Browse files Browse the repository at this point in the history
  • Loading branch information
skvadrik committed Oct 21, 2020
1 parent 5ec13d6 commit 2b363b9
Showing 1 changed file with 19 additions and 32 deletions.
51 changes: 19 additions & 32 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,47 +34,31 @@ jobs:
cxx-flags: '-O2'
skeleton: ${{ false }}

- name: linux-gcc-debug-ootree
- name: linux-gcc-debug-ootree-skeleton
os: ubuntu-latest
generator: Unix Makefiles
build-type: Debug
build-dir: .build
cxx-flags: -O2
skeleton: ${{ false }}
skeleton: ${{ true }}

- name: linux-gcc-debug-intree
- name: linux-gcc-debug-intree-skeleton
os: ubuntu-latest
generator: Unix Makefiles
build-type: Debug
build-dir: .
cxx-flags: -O2
skeleton: ${{ false }}

- name: linux-gcc-debug-ootree-skeleton
os: ubuntu-latest
generator: Unix Makefiles
build-type: Debug
build-dir: .build
cxx-flags: -O2
skeleton: ${{ true }}

- name: linux-gcc-release-ootree
- name: linux-gcc-release-ootree-skeleton
os: ubuntu-latest
generator: Unix Makefiles
build-type: Release
build-dir: .build
cxx-flags: ${{ null }}
skeleton: ${{ false }}
skeleton: ${{ true }}

# macOS
- name: macos-clang-debug-ootree
os: macos-latest
generator: Unix Makefiles
build-type: Debug
build-dir: .build
cxx-flags: -O2
skeleton: ${{ false }}

- name: macos-clang-debug-ootree-skeleton
os: macos-latest
generator: Unix Makefiles
Expand All @@ -83,21 +67,21 @@ jobs:
cxx-flags: -O2
skeleton: ${{ true }}

- name: macos-clang-debug-intree
- name: macos-clang-debug-intree-skeleton
os: macos-latest
generator: Unix Makefiles
build-type: Debug
build-dir: .
cxx-flags: -O2
skeleton: ${{ false }}
skeleton: ${{ true }}

- name: macos-clang-release-ootree
- name: macos-clang-release-ootree-skeleton
os: macos-latest
generator: Unix Makefiles
build-type: Release
build-dir: .build
cxx-flags: ${{ null }}
skeleton: ${{ false }}
skeleton: ${{ true }}

# Windows
- name: windows-msvc-debug-ootree
Expand Down Expand Up @@ -275,11 +259,14 @@ jobs:
find src -name '*.re' | xargs touch
cmake --build ${{ matrix.build-dir }} --config ${{ matrix.build-type }} --verbose
- name: Standard Tests
if: startsWith(runner.os, 'Windows') == false && matrix.skeleton == false
run: cmake --build ${{ matrix.build-dir }} --target check

- name: Skeleton Validation
if: startsWith(runner.os, 'Windows') == false && matrix.skeleton == true
- name: Test
if: startsWith(runner.os, 'Windows') == false
working-directory: ${{ matrix.build-dir }}
run: ./run_tests.sh --skeleton
run: |
# main test suite
cmake --build . --target check
# skeleton tests (if enabled)
if [[ "x${{ matrix.skeleton }}" == "xtrue" ]] ; then
./run_tests.sh --skeleton
fi

0 comments on commit 2b363b9

Please sign in to comment.