|
5 | 5 | branches: |
6 | 6 | - master |
7 | 7 | pull_request: |
8 | | - branches: |
9 | | - - master |
10 | 8 |
|
11 | 9 | jobs: |
12 | 10 | ci: |
13 | | - name: CI |
| 11 | + name: ${{ matrix.name }} |
14 | 12 | runs-on: ${{ matrix.os }} |
15 | 13 | 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 | + |
20 | 28 | steps: |
21 | | - - name: Checkout Repository |
22 | | - uses: actions/checkout@v3 |
| 29 | + - uses: actions/checkout@v6 |
| 30 | + |
23 | 31 | # LLVM and Clang |
24 | 32 | - name: Cache LLVM and Clang |
25 | 33 | id: cache-llvm |
26 | | - uses: actions/cache@v3 |
| 34 | + uses: actions/cache@v4 |
27 | 35 | with: |
28 | 36 | path: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }} |
29 | 37 | key: ${{ matrix.os }}-llvm-${{ matrix.clang[0] }} |
| 38 | + |
30 | 39 | - name: Install LLVM and Clang |
31 | 40 | uses: KyleMayes/install-llvm-action@v1 |
32 | 41 | with: |
33 | 42 | version: ${{ matrix.clang[0] }} |
34 | 43 | directory: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }} |
35 | 44 | cached: ${{ steps.cache-llvm.outputs.cache-hit }} |
| 45 | + |
36 | 46 | # Rust |
37 | 47 | - name: Install Rust |
38 | | - uses: dtolnay/rust-toolchain@1.40.0 |
| 48 | + uses: dtolnay/rust-toolchain |
| 49 | + with: |
| 50 | + toolchain: ${{ matrix.rust }} |
| 51 | + |
39 | 52 | # Test |
40 | 53 | - name: Cargo Test (Dynamic) |
41 | 54 | env: |
42 | 55 | LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/lib |
43 | 56 | LLVM_CONFIG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/bin/llvm-config |
44 | 57 | run: cargo test --verbose --features ${{ matrix.clang[1] }} -- --nocapture |
| 58 | + |
45 | 59 | - name: Cargo Test (Runtime) |
46 | 60 | env: |
47 | 61 | LIBCLANG_PATH: ${{ runner.temp }}/llvm-${{ matrix.clang[0] }}/lib |
|
0 commit comments