-
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.
- Loading branch information
Roman Pavelka
committed
Jul 14, 2023
1 parent
e974406
commit c576986
Showing
2 changed files
with
27 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: Build | ||
on: | ||
push: | ||
jobs: | ||
build-project: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
build-tool: [Unix Makefiles, Ninja] | ||
compiler: [g++, clang++] | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3.5.3 | ||
|
||
- name: Configure the project | ||
uses: threeal/cmake-action@v1.2.0 | ||
with: | ||
build-dir: build_${{ matrix.build-tool }}_${{ matrix.compiler }} | ||
generator: ${{ matrix.build-tool }} | ||
cxx-compiler: ${{ matrix.compiler }} | ||
|
||
- name: Build the project | ||
run: cmake --build build_${{ matrix.build-tool }}_${{ matrix.compiler }} | ||
|
||
- name: Test the project | ||
run: ctest --test-dir build_${{ matrix.build-tool }}_${{ matrix.compiler }} |
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