Skip to content

Commit 0204c25

Browse files
authored
ci: move macOS azure-pipelines.yml to GitHub Actions with a matrix (#1275)
* Fixes #1278.
2 parents aa53e0b + 807b88d commit 0204c25

File tree

3 files changed

+18
-87
lines changed

3 files changed

+18
-87
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ on:
66
pull_request:
77

88
jobs:
9-
test-linux:
10-
runs-on: ubuntu-latest
9+
test:
10+
strategy:
11+
matrix:
12+
os: [
13+
ubuntu-latest, # x86_64
14+
macos-13, # x86_64
15+
]
16+
runs-on: ${{ matrix.os }}
1117
steps:
1218
- uses: actions/checkout@v4
1319
- run: rustup component add rustfmt rustc-dev
@@ -17,7 +23,10 @@ jobs:
1723
# cached, what gets used as part of the key, and what additional handling
1824
# happens to make the cache reliable and smaller.
1925
- uses: Swatinem/rust-cache@v2
20-
- run: |
26+
27+
- name: Install packages (Ubuntu)
28+
if: runner.os == 'Linux'
29+
run: |
2130
sudo apt-get update
2231
sudo apt-get install \
2332
clang \
@@ -48,6 +57,12 @@ jobs:
4857
strace \
4958
unzip \
5059
zlib1g-dev
60+
61+
- name: Install packages (macOS)
62+
if: runner.os == 'macOS'
63+
run: |
64+
# `bash` needed b/c macOS ships with bash 3, which doesn't support arrays properly
65+
brew install -q cmake ninja gpg llvm@17 bash
5166
5267
- uses: astral-sh/setup-uv@v6
5368

azure-pipelines.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

scripts/provision_mac.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

0 commit comments

Comments
 (0)