99env :
1010 CARGO_TERM_COLOR : " always"
1111 LLVM_PATH : " ${{ github.workspace }}/llvm"
12+ LLVM_VERSION : " 18.1"
1213
1314jobs :
1415 test :
@@ -17,29 +18,15 @@ jobs:
1718 steps :
1819 - uses : actions/checkout@v5
1920
20- - name : Install LLVM Dependencies
21- run : |
22- sudo apt update
23- wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
24- sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
25-
26- - name : Install LLVM and Clang
27- uses : KyleMayes/install-llvm-action@v2
21+ - uses : ./.github/actions/setup
2822 with :
29- version : " 18.1"
30- directory : " ${{ env.LLVM_PATH }}"
31-
32- - name : Install rust
33- run : |
34- rustup toolchain install stable --profile minimal --no-self-update
23+ llvm-version : ${{ env.LLVM_VERSION }}
24+ llvm-path : ${{ env.LLVM_PATH }}
3525
36- - name : Install cargo-llvm-cov
37- uses : taiki-e/install-action@cargo-llvm-cov
38-
39- - name : Install cargo-nextest
40- uses : taiki-e/install-action@nextest
41-
42- - uses : Swatinem/rust-cache@v2
26+ - name : Install cargo-llvm-cov and nextest
27+ uses : taiki-e/install-action@v2
28+ with :
29+ tool : cargo-llvm-cov,nextest
4330
4431 - name : Test with code coverage
4532 run : |
@@ -69,23 +56,10 @@ jobs:
6956 steps :
7057 - uses : actions/checkout@v5
7158
72- - name : Install LLVM Dependencies
73- run : |
74- sudo apt update
75- wget http://security.ubuntu.com/ubuntu/pool/universe/n/ncurses/libtinfo5_6.3-2ubuntu0.1_amd64.deb
76- sudo apt install ./libtinfo5_6.3-2ubuntu0.1_amd64.deb
77-
78- - name : Install LLVM and Clang
79- uses : KyleMayes/install-llvm-action@v2
59+ - uses : ./.github/actions/setup
8060 with :
81- version : " 18.1"
82- directory : " ${{ env.LLVM_PATH }}"
83-
84- - name : Install rust
85- run : |
86- rustup toolchain install stable --profile minimal --no-self-update
87-
88- - uses : Swatinem/rust-cache@v2
61+ llvm-version : ${{ env.LLVM_VERSION }}
62+ llvm-path : ${{ env.LLVM_PATH }}
8963
9064 - name : Run clippy
9165 run : |
9872
9973 steps :
10074 - uses : actions/checkout@v5
75+
10176 - uses : streetsidesoftware/cspell-action@v8
10277 with :
10378 incremental_files_only : false
10479
80+ cargo-mutants :
81+ runs-on : ubuntu-latest
82+
83+ steps :
84+ - uses : actions/checkout@v5
85+
86+ - uses : ./.github/actions/setup
87+ with :
88+ llvm-version : ${{ env.LLVM_VERSION }}
89+ llvm-path : ${{ env.LLVM_PATH }}
90+
91+ - name : Install cargo-mutants and nextest
92+ uses : taiki-e/install-action@v2
93+ with :
94+ tool : cargo-mutants,nextest
95+
96+ - run : cargo mutants -vV --in-place
97+
98+ - uses : actions/upload-artifact@v4
99+ if : always()
100+ with :
101+ name : mutants-out
102+ path : mutants.out
103+
105104# spell-checker:ignore libtinfo,Swatinem
0 commit comments