Skip to content

Commit 45e44ef

Browse files
authored
Updates cpp and add Mac ARM to test (#172)
1 parent c71237d commit 45e44ef

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed

.github/workflows/run_tests.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
os: [ubuntu-latest, windows-latest, macos-13]
22+
platform: [windows-latest, ubuntu-latest, macos-13, macos-14]
2323
version: ["3.10", "3.13"]
2424
defaults:
2525
run:
2626
shell: bash -l {0}
2727

28-
runs-on: ${{ matrix.os }}
28+
runs-on: ${{ matrix.platform}}
2929

3030
steps:
3131
- uses: actions/checkout@v4
@@ -35,8 +35,8 @@ jobs:
3535
uses: actions/setup-python@v4
3636
with:
3737
python-version: ${{ matrix.version }}
38-
- name: Install OMP (MacOS)
39-
if: runner.os == 'macOS'
38+
- name: Install OMP (MacOS Intel)
39+
if: matrix.platform == 'macos-13'
4040
run: |
4141
brew install llvm libomp
4242
echo "export CC=/usr/local/opt/llvm/bin/clang" >> ~/.bashrc
@@ -45,6 +45,16 @@ jobs:
4545
echo "export CXXFLAGS=\"$CXXFLAGS -I/usr/local/opt/libomp/include\"" >> ~/.bashrc
4646
echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/usr/local/opt/libomp/lib -L/usr/local/opt/libomp/lib -lomp\"" >> ~/.bashrc
4747
source ~/.bashrc
48+
- name: Install OMP (MacOS M1)
49+
if: matrix.platform == 'macos-14'
50+
run: |
51+
brew install llvm libomp
52+
echo "export CC=/opt/homebrew/opt/llvm/bin/clang" >> ~/.bashrc
53+
echo "export CXX=/opt/homebrew/opt/llvm/bin/clang++" >> ~/.bashrc
54+
echo "export CFLAGS=\"$CFLAGS -I/opt/homebrew/opt/libomp/include\"" >> ~/.bashrc
55+
echo "export CXXFLAGS=\"$CXXFLAGS -I/opt/homebrew/opt/libomp/include\"" >> ~/.bashrc
56+
echo "export LDFLAGS=\"$LDFLAGS -Wl,-rpath,/opt/homebrew/opt/libomp/lib -L/opt/homebrew/opt/libomp/lib -lomp\"" >> ~/.bashrc
57+
source ~/.bashrc
4858
- name: Install OMP (Linux)
4959
if: runner.os == 'Linux'
5060
run: |

cpp/RAT

Submodule RAT updated 100 files

0 commit comments

Comments
 (0)