|
1 | 1 | name: macOS CI
|
2 |
| - |
3 | 2 | on:
|
4 | 3 | push:
|
5 |
| - branches: [ "main" ] |
| 4 | + branches: ["main"] |
6 | 5 | pull_request:
|
7 |
| - branches: [ "main" ] |
8 |
| - |
| 6 | + branches: ["main"] |
9 | 7 | jobs:
|
10 | 8 | build:
|
11 | 9 | runs-on: ${{ matrix.os }}
|
12 |
| - |
13 | 10 | strategy:
|
14 | 11 | fail-fast: false
|
15 | 12 | matrix:
|
16 | 13 | os: [macos-latest]
|
17 | 14 | steps:
|
18 |
| - - uses: actions/checkout@v4 |
19 |
| - with: |
20 |
| - submodules: true |
21 |
| - |
22 |
| - - name: Install LLVM@19 |
23 |
| - run: brew install llvm@19 ninja |
24 |
| - |
25 |
| - - name: Install Python dependencies |
26 |
| - run: pip install lit filecheck==0.0.24 |
27 |
| - |
28 |
| - - name: Set reusable strings |
29 |
| - id: strings |
30 |
| - shell: bash |
31 |
| - run: | |
32 |
| - echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" |
33 |
| -
|
34 |
| - - name: Configure CMake |
35 |
| - run: > |
36 |
| - cmake -G Ninja |
37 |
| - -B ${{ steps.strings.outputs.build-output-dir }} |
38 |
| - -DCMAKE_C_COMPILER=clang |
39 |
| - -DCMAKE_CXX_COMPILER=clang++ |
40 |
| - -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/llvm@19/ |
41 |
| - -DCMAKE_BUILD_TYPE=Release |
42 |
| - -S ${{ github.workspace }} |
43 |
| -
|
44 |
| - - name: Build |
45 |
| - run: cmake --build ${{ steps.strings.outputs.build-output-dir }} |
46 |
| - |
47 |
| - - name: Test |
48 |
| - working-directory: ${{ steps.strings.outputs.build-output-dir }} |
49 |
| - run: ninja run-integration-tests |
| 15 | + - uses: actions/checkout@v4 |
| 16 | + with: |
| 17 | + submodules: true |
| 18 | + - name: Install LLVM@19 |
| 19 | + run: brew install llvm@19 ninja |
| 20 | + - name: Install Python dependencies |
| 21 | + run: pip install lit filecheck==0.0.24 |
| 22 | + - name: Set reusable strings |
| 23 | + id: strings |
| 24 | + shell: bash |
| 25 | + run: | |
| 26 | + echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" |
| 27 | + - name: Configure CMake |
| 28 | + run: | |
| 29 | + cmake -G Ninja \ |
| 30 | + -B ${{ steps.strings.outputs.build-output-dir }} \ |
| 31 | + -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \ |
| 32 | + -DCMAKE_PREFIX_PATH=/opt/homebrew/opt/llvm@19/ \ |
| 33 | + -DCMAKE_BUILD_TYPE=Release \ |
| 34 | + -S ${{ github.workspace }} |
| 35 | + - name: Build |
| 36 | + run: cmake --build ${{ steps.strings.outputs.build-output-dir }} |
| 37 | + - name: Test |
| 38 | + working-directory: ${{ steps.strings.outputs.build-output-dir }} |
| 39 | + run: ninja run-integration-tests |
0 commit comments