Skip to content

Commit

Permalink
🔧 source environment when building unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLau0220 committed Dec 5, 2024
1 parent fec6af5 commit ac13b53
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/clang-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,10 @@ jobs:
echo 'export LDFLAGS="-L$(brew --prefix)/opt/llvm@18/lib"' >> /Users/runner/.bash_profile
echo 'export CPPFLAGS="-I$(brew --prefix)/opt/llvm@18/include"' >> /Users/runner/.bash_profile
- name: Build qsyn
- name: Build and test qsyn
run: |
source /Users/runner/.bash_profile
clang++ --version
echo "Building qsyn using $(sysctl -n hw.logicalcpu) cores"
mkdir -p build
cmake -S . -B build -DCMAKE_CXX_COMPILER=$(which clang++)
cmake --build build -j $(sysctl -n hw.logicalcpu)
- name: Run test for qsyn
run: make test
make test $(sysctl -n hw.logicalcpu)

0 comments on commit ac13b53

Please sign in to comment.