@@ -3,10 +3,10 @@ name: Build
33on :
44 push :
55 branches :
6- - ' * '
6+ - " * "
77 pull_request :
88 branches :
9- - ' * '
9+ - " * "
1010
1111env :
1212 CARGO_TERM_COLOR : always
@@ -18,17 +18,22 @@ jobs:
1818 fail-fast : false
1919 matrix :
2020 os : [ubuntu-latest, macos-latest, windows-latest]
21+ rust : [stable, beta, nightly, 1.71.0]
2122
2223 steps :
23- - uses : actions/checkout@v2
24- - name : Install LLVM and Clang
25- if : startsWith(matrix.os, 'windows')
26- uses : KyleMayes/install-llvm-action@v1
27- with :
28- version : " 11.0"
29- directory : ${{ runner.temp }}/llvm
30- - name : Set LIBCLANG_PATH
31- if : startsWith(matrix.os, 'windows')
32- run : echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
33- - name : Run tests
34- run : bash ./ci-tests.sh
24+ - uses : actions/checkout@v4
25+ - uses : dtolnay/rust-toolchain@master
26+ with :
27+ toolchain : ${{ matrix.rust }}
28+ components : clippy
29+ - name : Install LLVM and Clang
30+ if : startsWith(matrix.os, 'windows')
31+ uses : KyleMayes/install-llvm-action@v2
32+ with :
33+ version : " 11.0"
34+ directory : ${{ runner.temp }}/llvm
35+ - name : Set LIBCLANG_PATH
36+ if : startsWith(matrix.os, 'windows')
37+ run : echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV
38+ - name : Run tests
39+ run : bash ./ci-tests.sh
0 commit comments