-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add CI workflow for building with multiple GCC versions - Add test suite execution - Add static analysis with clang-tidy - Add Flox environment build verification - Update README with CI documentation Co-Authored-By: [email protected] <[email protected]>
- Loading branch information
1 parent
02719a2
commit a35a6eb
Showing
2 changed files
with
58 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,48 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
gcc: ['9', '10', '11'] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y help2man clang-tidy | ||
- name: Build | ||
run: make | ||
|
||
- name: Run tests | ||
run: make test | ||
|
||
- name: Lint | ||
run: make lint | ||
|
||
flox-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Flox | ||
uses: flox/install-flox@v1 | ||
|
||
- name: Build with Flox | ||
run: | | ||
flox activate | ||
make | ||
- name: Test with Flox | ||
run: | | ||
flox activate | ||
make test |
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