Skip to content

Commit 9d660f6

Browse files
committed
Add macos-15 as a test environment
1 parent 7235d49 commit 9d660f6

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ jobs:
3333
strategy:
3434
fail-fast: ${{ github.event_name == 'merge_group' }}
3535
matrix:
36-
# smoelius: Test with `macos-latest` once the repository is made public.
37-
environment: [ubuntu-latest]
36+
environment: [ubuntu-latest, macos-15]
3837
anchor-version: [0.31.1]
3938

4039
runs-on: ${{ matrix.environment }}
@@ -76,11 +75,21 @@ jobs:
7675
- name: Rustup
7776
run: rustup update
7877

79-
- name: Install Agave prerequisites
80-
run: |
78+
- name: Install Agave prerequisites on Ubuntu
79+
if: ${{ matrix.environment == 'ubuntu-latest' }}
8180
sudo apt update
8281
sudo apt install libclang-dev libudev-dev llvm protobuf-compiler
8382

83+
- name: Install Agave prerequisites on macOS
84+
if: ${{ matrix.environment == 'macos-15' }}
85+
run: |
86+
brew install coreutils gnu-sed llvm protobuf
87+
echo "/opt/homebrew/opt/gnu-sed/libexec/gnubin" >> "$GITHUB_PATH"
88+
# smoelius: ~/lib is one of the directories `librocksdb-sys`'s build script checks
89+
# for libclang.dylib.
90+
mkdir ~/lib
91+
ln -s /opt/homebrew/opt/llvm/lib/libclang.dylib ~/lib/libclang.dylib
92+
8493
- name: Install Agave
8594
run: |
8695
if ! ./agave/bin/solana-test-validator --version; then

0 commit comments

Comments
 (0)