-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test all supported CMake versions * Output CMake version * Test latest CMake version on macOS * Split build into multiple steps * Reduce log noise in test step
- Loading branch information
1 parent
15a8f1f
commit 6666e2f
Showing
2 changed files
with
69 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,34 @@ | ||
--- | ||
name: "Run Test suite" | ||
name: Test | ||
on: [push, pull_request] | ||
jobs: | ||
run-simple-tests: | ||
runs-on: ubuntu-latest | ||
main: | ||
strategy: | ||
matrix: | ||
cmake: ['3.20', '3.19', '3.18', '3.17', '3.16', '3.15'] | ||
os: [ubuntu-latest] | ||
name: [Linux] | ||
include: | ||
- cmake: '3.20' | ||
os: macos-latest | ||
name: macOS | ||
name: ${{ matrix.name }} - CMake ${{ matrix.cmake }} | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# CMake already installed in /usr/local - Wow | ||
# - name: Install cmake from OS | ||
# run: | | ||
# sudo apt-get install cmake | ||
- name: Run CTest | ||
run: | | ||
ctest -VV -S *_test.cmake | ||
- uses: actions/checkout@v2 | ||
- name: Setup cmake | ||
uses: jwlawson/[email protected] | ||
with: | ||
cmake-version: ${{ matrix.cmake }} | ||
- name: Use cmake | ||
run: cmake --version | ||
- name: Configure | ||
run: ctest -VV -D "STEPS=clean;configure" -S FairCMakeModules_test.cmake | ||
- name: Build | ||
run: ctest -VV -D "STEPS=build" -S FairCMakeModules_test.cmake | ||
- name: Install | ||
run: ctest -VV -D "STEPS=install" -S FairCMakeModules_test.cmake | ||
- name: Test | ||
run: > | ||
ctest -V --output-on-failure -D "STEPS=test" | ||
-S FairCMakeModules_test.cmake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters