-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (36 loc) · 1.09 KB
/
CLANG-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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: Build-and-Test-CLANG-MacOS
on:
workflow_dispatch:
push:
branches:
- '*'
jobs:
Build:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
build_type: [Debug, Release]
steps:
- uses: actions/checkout@v4
- name: Install the latest clang compiler.
run: |
brew install llvm
- name: Configure CMake.
run: |
cmake -S . -B ./Build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_CXX_COMPILER=/opt/homebrew/opt/llvm/bin/clang++ -DBENCH_TYPE=BENCHMARK -DGENERATE_ASSEMBLY=TRUE
- name: Build the Test
run: |
cmake --build ./Build --config=${{matrix.build_type}}
- name: Print assembly file
run: |
echo "Contents of Assembly.cod:"
cat Assembly/Assembly.cod
- name: Install the Test
run: |
sudo cmake --install ./Build --config=${{matrix.build_type}}
- name: Run the Test
run: |
sudo chmod +x /usr/local/bin/BenchmarkExe
sudo /usr/local/bin/BenchmarkExe
continue-on-error: true