Skip to content

Commit 5548575

Browse files
committed
Add MacOS CI back
Signed-off-by: Yang Zhang <yang.zhang@pingcap.com>
1 parent 981f813 commit 5548575

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

.github/workflows/rust.yml

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,43 @@ env:
1515
CARGO_TERM_COLOR: always
1616

1717
jobs:
18-
# The macOS nightly CI job was removed because grpc-io 0.13 fails with the
19-
# macOS C++ toolchain. Without a committed Cargo.lock, we cannot pin
20-
# grpc-io to 0.10 as a workaround.
18+
nightly:
19+
runs-on: ${{ matrix.os }}
20+
strategy:
21+
matrix:
22+
# tests with sanitizer on `ubuntu-latest` is supported by
23+
# self-defined `nihtly test` job, so we don't need to test it here.
24+
os: [ macos-latest ]
25+
steps:
26+
- uses: actions/checkout@v2
27+
with:
28+
ref: ${{ github.event.pull_request.head.sha }}
29+
- name: Install nightly toolchain
30+
uses: actions-rs/toolchain@v1
31+
with:
32+
profile: minimal
33+
toolchain: nightly-2026-01-30
34+
override: true
35+
components: rustfmt, clippy, rust-src
36+
- uses: Swatinem/rust-cache@v1
37+
with:
38+
sharedKey: ${{ matrix.os }}
39+
- name: Cache dependencies
40+
if: ${{ matrix.os == 'ubuntu-latest' }}
41+
run: if [[ ! -e ~/.cargo/bin/grcov ]]; then cargo install grcov; fi
42+
- name: Format
43+
run: |
44+
make format
45+
git diff --exit-code
46+
- name: Clippy
47+
run: make clippy
48+
env:
49+
EXTRA_CARGO_ARGS: '--fix'
50+
- name: Run tests
51+
run: make test
52+
env:
53+
RUST_BACKTRACE: 1
54+
EXTRA_CARGO_ARGS: '--verbose'
2155
stable:
2256
runs-on: ${{ matrix.os }}
2357
strategy:
@@ -49,7 +83,7 @@ jobs:
4983
WITH_STABLE_TOOLCHAIN: 'force'
5084
coverage:
5185
runs-on: ubuntu-latest
52-
needs: stable
86+
needs: nightly
5387
steps:
5488
- uses: actions/checkout@v2
5589
with:

0 commit comments

Comments
 (0)