Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 311df6b

Browse files
NRN submodule CI fixes (#883)
* Ubuntu: * install pytest(cov) via pip * macOS * SDK_ROOT env * use gcc wrapper
1 parent 1423abd commit 311df6b

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/test-as-submodule.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
fail-fast: false
2929
env:
3030
CMAKE_BUILD_PARALLEL_LEVEL: ${{matrix.cores}}
31+
SDK_ROOT: $(xcrun --sdk macosx --show-sdk-path)
32+
3133
steps:
3234

3335
- name: Install homebrew packages
@@ -36,16 +38,16 @@ jobs:
3638
brew install bison coreutils flex ninja openmpi
3739
python3 -m pip install --upgrade numpy pytest pytest-cov
3840
echo /usr/local/opt/flex/bin:/usr/local/opt/bison/bin >> $GITHUB_PATH
39-
echo "CC=clang" >> $GITHUB_ENV
40-
echo "CXX=clang++" >> $GITHUB_ENV
41+
echo "CC=gcc" >> $GITHUB_ENV
42+
echo "CXX=g++" >> $GITHUB_ENV
4143
4244
- name: Install apt packages
4345
if: startsWith(matrix.os, 'ubuntu')
4446
run: |
4547
sudo apt-get update
4648
sudo apt-get install bison cython3 flex libfl-dev libopenmpi-dev \
47-
ninja-build openmpi-bin python3-dev python3-numpy python3-pytest \
48-
python3-pytest-cov
49+
ninja-build openmpi-bin python3-dev
50+
python3 -m pip install --upgrade numpy pytest pytest-cov
4951
echo "CC=gcc" >> $GITHUB_ENV
5052
echo "CXX=g++" >> $GITHUB_ENV
5153

0 commit comments

Comments
 (0)