-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 💚 Add MacOS CI * 💚 Add Ubuntu CI * adapt tests * Include header in chip.cpp * Add timeout * Fix test run on ubuntu ci * Update Droplet.tests.cpp
- Loading branch information
1 parent
81728d0
commit c70ff70
Showing
4 changed files
with
196 additions
and
2 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,96 @@ | ||
name: 🍎 • CI | ||
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
paths: | ||
- '**/*.h' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- '.github/workflows/macos.yml' | ||
pull_request: | ||
branches: [ 'main' ] | ||
paths: | ||
- '**/*.h' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- '.github/workflows/macos.yml' | ||
merge_group: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
matrix: | ||
os: [ macos-13, macos-14, macos-15 ] | ||
compiler: [ g++-13, g++-14, clang++ ] | ||
include: | ||
- compiler: clang++ | ||
ccompiler: clang | ||
- compiler: g++-13 | ||
ccompiler: gcc-13 | ||
- compiler: g++-14 | ||
ccompiler: gcc-14 | ||
exclude: | ||
- os: macos-14 | ||
compiler: g++-13 | ||
- os: macos-14 | ||
compiler: g++-14 | ||
- os: macos-15 | ||
compiler: g++-13 | ||
- os: macos-15 | ||
compiler: g++-14 | ||
|
||
name: 🍎 ${{matrix.os}} with ${{matrix.compiler}} | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
- name: Clone Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
# Remove existing 2to3 binary | ||
- name: Remove existing 2to3 binary | ||
run: sudo rm /usr/local/bin/2to3 || true | ||
|
||
- if: matrix.os == 'macos-13' | ||
name: Setup XCode version | ||
uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: "^14.2" | ||
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: "${{matrix.os}}-${{matrix.compiler}}-Release" | ||
variant: ccache | ||
save: true | ||
max-size: 10G | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{github.workspace}}/build_release | ||
|
||
- name: Configure CMake | ||
working-directory: ${{github.workspace}}/build_release | ||
run: > | ||
cmake ${{github.workspace}} | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler}} | ||
-DCMAKE_BUILD_TYPE=Release | ||
- name: Build | ||
working-directory: ${{github.workspace}}/build_release | ||
run: cmake --build . --config Release -j4 # all macOS runners provide at least 3 cores | ||
|
||
- name: Test | ||
working-directory: ${{github.workspace}}/build_release | ||
run: ./dropletTest |
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,86 @@ | ||
name: 🐧 • CI | ||
|
||
on: | ||
push: | ||
branches: [ 'main' ] | ||
paths: | ||
- '**/*.h' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- '.github/workflows/ubuntu.yml' | ||
pull_request: | ||
branches: [ 'main' ] | ||
paths: | ||
- '**/*.h' | ||
- '**/*.cpp' | ||
- '**/*.cmake' | ||
- '**/CMakeLists.txt' | ||
- '.github/workflows/ubuntu.yml' | ||
merge_group: | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
build_and_test: | ||
strategy: | ||
matrix: | ||
os: [ ubuntu-22.04, ubuntu-24.04 ] | ||
compiler: [ g++-11, g++-12, g++-13, clang++-14, clang++-15, clang++-16 ] | ||
exclude: | ||
- os: ubuntu-22.04 | ||
compiler: g++-13 | ||
- os: ubuntu-22.04 | ||
compiler: clang++-16 | ||
- os: ubuntu-24.04 | ||
compiler: clang++-14 | ||
include: | ||
- os: ubuntu-22.04 | ||
compiler: g++-10 | ||
- os: ubuntu-24.04 | ||
compiler: g++-14 | ||
- os: ubuntu-24.04 | ||
compiler: clang++-17 | ||
- os: ubuntu-24.04 | ||
compiler: clang++-18 | ||
|
||
name: 🐧 ${{matrix.os}} with ${{matrix.compiler}} | ||
runs-on: ${{matrix.os}} | ||
|
||
steps: | ||
- name: Install libraries and the respective compiler | ||
run: sudo apt-get update && sudo apt-get install -yq libtbb-dev ${{matrix.compiler}} | ||
|
||
- name: Clone Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: "${{matrix.os}}-${{matrix.compiler}}-Release" | ||
variant: ccache | ||
save: true | ||
max-size: 10G | ||
|
||
- name: Create Build Environment | ||
run: cmake -E make_directory ${{github.workspace}}/build_release | ||
|
||
- name: Configure CMake | ||
working-directory: ${{github.workspace}}/build_release | ||
run: > | ||
cmake ${{github.workspace}} | ||
-DCMAKE_CXX_COMPILER=${{matrix.compiler}} | ||
-DCMAKE_BUILD_TYPE=Release | ||
- name: Build | ||
working-directory: ${{github.workspace}}/build_release | ||
run: cmake --build . --config Release -j4 | ||
|
||
- name: Run Tests and Save Results | ||
working-directory: ${{github.workspace}}/build_release | ||
run: ./dropletTest | ||
timeout-minutes: 10 |
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
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