Skip to content

Commit ae7b5c4

Browse files
committed
add macos
1 parent 79f0db1 commit ae7b5c4

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/build-on-unix.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
build-and-test:
2424
strategy:
2525
matrix:
26-
os: [{tripple: x64-linux, on: ubuntu-24.04}]
26+
os: [{tripple: x64-linux, on: ubuntu-24.04}, {tripple: arm64-macos, on: macos-26}]
2727

2828
name: ${{matrix.os.tripple}}
2929
runs-on: ${{matrix.os.on}}
@@ -43,7 +43,7 @@ jobs:
4343
with:
4444
submodules: recursive
4545

46-
- name: Install development environment
46+
- name: Install development environment (Ubuntu)
4747
if: matrix.os.on == 'ubuntu-24.04'
4848
run: |
4949
wget https://apt.llvm.org/llvm.sh
@@ -54,6 +54,12 @@ jobs:
5454
sudo ln -f /usr/bin/clang-20 /usr/bin/clang
5555
sudo ln -f /usr/bin/clang++-20 /usr/bin/clang++
5656
57+
- name: Install development environment (MacOS)
58+
if: matrix.os.on == 'macos-26'
59+
run: |
60+
sudo ln -f $(brew --prefix llvm@20)/bin/clang /usr/bin/clang
61+
sudo ln -f $(brew --prefix llvm@20)/bin/clang++ /usr/bin/clang++
62+
5763
- name: Create vcpkg cache dir
5864
run: mkdir ${{env.VCPKG_DEFAULT_BINARY_CACHE}}
5965

@@ -70,7 +76,7 @@ jobs:
7076
uses: actions/cache/restore@v4
7177
with:
7278
path: vcpkg/binary-sources/**/*.zip
73-
key: vcpkg-cache-linux-${{hashFiles('vcpkg.json', 'vcpkg/commit.txt')}}
79+
key: vcpkg-cache-${{matrix.os.tripple}}-${{hashFiles('vcpkg.json', 'vcpkg/commit.txt')}}
7480

7581
- name: CMake - Configure
7682
run: cmake --preset=${{matrix.os.tripple}} .

0 commit comments

Comments
 (0)