-
Notifications
You must be signed in to change notification settings - Fork 17
32 lines (29 loc) · 1.09 KB
/
clang-test-macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: llvm-clang test (MacOS)
on:
push:
branches: [main, develop]
pull_request:
types: [opened, synchronize, reopened]
branches: [main, develop]
jobs:
build-and-test:
runs-on: macos-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v3
- name: Download llvm-clang, parallel and coreutils
run: |
brew install llvm@18 parallel coreutils
echo 'export PATH="$(brew --prefix)/opt/llvm@18/bin:$PATH"' >> /Users/runner/.bash_profile
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
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