-
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.
- Loading branch information
1 parent
2f50857
commit e04b483
Showing
23 changed files
with
306 additions
and
115 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 |
---|---|---|
|
@@ -54,76 +54,6 @@ concurrency: | |
#BUILD_TYPE: Release | ||
|
||
jobs: | ||
macos: | ||
name: CI ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
cxx_compiler: ["$(brew --prefix llvm@18)/bin/clang++"] | ||
llvm: ["$(brew --prefix llvm@18)"] | ||
boost: ["$(brew --prefix boost)"] | ||
libomp: ["$(brew --prefix libomp)"] | ||
os: ["macos-12"] | ||
|
||
# env does not work here because is resolved as string and not command | ||
# env: | ||
# CXX: ${{ matrix.cxx_compiler }} | ||
|
||
steps: | ||
|
||
- uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.12' | ||
|
||
- name: checkout main repository | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
lfs: false | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/[email protected] | ||
with: | ||
key: super-ci-mac-2 # name for the cache | ||
|
||
# uninstall clang 15 | ||
- run: brew uninstall llvm@15 | ||
|
||
- run: brew install coreutils llvm@18 | ||
|
||
- run: brew install libomp boost | ||
|
||
- run: pip install meson meson-python ninja pytest numpy | ||
|
||
# LDFLAGS="-L/opt/homebrew/opt/libomp/lib" CPPFLAGS="-I/opt/homebrew/opt/libomp/include" | ||
- name: configure meson | ||
run: | | ||
BOOST_ROOT=${{ matrix.boost }} CXX=${{ matrix.llvm }}/bin/clang++ LDFLAGS="-L${{ matrix.llvm }}/lib/c++ -L${{ matrix.llvm }}/lib -L${{ matrix.boost }}/lib" CPPFLAGS="-I${{ matrix.llvm }}/include -I${{ matrix.boost }}/include" meson setup builddir/; meson configure builddir -Dpython.install_env=auto | ||
- name: compile project | ||
run: meson compile -C builddir/ | ||
|
||
- name: test (cpp) | ||
run: meson test -C builddir/ --print-errorlogs | ||
|
||
- name: install project | ||
run: sudo meson install -C builddir/ | ||
|
||
- name: install pip requirements | ||
run: pip install -r requirements.txt | ||
|
||
- name: test (pytest) | ||
run: pytest -v | ||
|
||
- name: 'Upload error log' | ||
uses: actions/upload-artifact@v4 | ||
if: failure() | ||
with: | ||
name: ${{matrix.container}}_testlog | ||
path: builddir/meson-logs/meson-log.txt | ||
retention-days: 5 | ||
|
||
macos_arm: | ||
name: CI ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
|
@@ -162,7 +92,6 @@ jobs: | |
|
||
- run: pip install meson meson-python ninja pytest numpy | ||
|
||
# LDFLAGS="-L/opt/homebrew/opt/libomp/lib" CPPFLAGS="-I/opt/homebrew/opt/libomp/include" | ||
- name: configure meson | ||
run: | | ||
meson setup builddir -Dpython.install_env=auto | ||
|
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.