Skip to content

Commit 6c749a7

Browse files
committed
Fix CI
1 parent 35b355e commit 6c749a7

File tree

1 file changed

+25
-11
lines changed

1 file changed

+25
-11
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,43 +5,57 @@ on:
55
branches:
66
- master
77
pull_request:
8-
branches:
9-
- master
108

119
jobs:
1210
ci:
13-
name: CI
11+
name: ${{ matrix.name }}
1412
runs-on: ${{ matrix.os }}
1513
strategy:
16-
matrix:
17-
os: [macos-latest, ubuntu-latest, windows-latest]
18-
clang: [["10.0", "clang_10_0"]]
19-
rust: ["1.40.0"]
14+
include:
15+
- name: macOS
16+
os: macos-latest
17+
clang: ["10.0", "clang_10_0"]
18+
rust: "stable" # 1.40 doesn't have support for Aarch64
19+
- name: Ubuntu
20+
os: ubuntu-latest
21+
clang: ["10.0", "clang_10_0"]
22+
rust: "1.40.0" # MSRV
23+
- name: Windows
24+
os: windows-latest
25+
clang: ["10.0", "clang_10_0"]
26+
rust: "1.40.0" # MSRV
27+
2028
steps:
21-
- name: Checkout Repository
22-
uses: actions/checkout@v3
29+
- uses: actions/checkout@v6
30+
2331
# LLVM and Clang
2432
- name: Cache LLVM and Clang
2533
id: cache-llvm
26-
uses: actions/cache@v3
34+
uses: actions/cache@v4
2735
with:
2836
path: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}
2937
key: ${{ matrix.os }}-llvm-${{ matrix.clang[0] }}
38+
3039
- name: Install LLVM and Clang
3140
uses: KyleMayes/install-llvm-action@v1
3241
with:
3342
version: ${{ matrix.clang[0] }}
3443
directory: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}
3544
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
45+
3646
# Rust
3747
- name: Install Rust
38-
uses: dtolnay/rust-toolchain@1.40.0
48+
uses: dtolnay/rust-toolchain
49+
with:
50+
toolchain: ${{ matrix.rust }}
51+
3952
# Test
4053
- name: Cargo Test (Dynamic)
4154
env:
4255
LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/lib
4356
LLVM_CONFIG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/bin/llvm-config
4457
run: cargo test --verbose --features ${{ matrix.clang[1] }} -- --nocapture
58+
4559
- name: Cargo Test (Runtime)
4660
env:
4761
LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/lib

0 commit comments

Comments
 (0)