@@ -42,21 +42,25 @@ jobs:
4242 - uses : actions/checkout@v4
4343 - name : Check formatting
4444 run : cargo fmt --all --check
45- install_deps :
46- needs : check_formatting
45+ clippy :
4746 runs-on : ubuntu-latest
4847 steps :
4948 - uses : actions/checkout@v4
50- - name : Install depsAdd commentMore actions
49+ - uses : actions/cache@v4
50+ with :
51+ path : target
52+ key : build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
53+ restore-keys : |
54+ build-${{ runner.os }}-
55+ - name : Install deps
5156 run : |
5257 sudo apt-get update -y
5358 sudo apt-get --fix-missing install -y
54- sudo apt-get install libasound2-dev libudev-dev pkg-config libx11-dev libjpeg-dev
55- - name : Install WASM target
56- run : rustup target add wasm32-unknown-unknown
59+ sudo apt-get install libasound2-dev
60+ - name : Run clippy
61+ run : cargo clippy --no-deps --all-targets --workspace --all-features -- --deny=warnings
5762 # Test the interpreter
5863 test_bin :
59- needs : install_deps
6064 runs-on : ubuntu-latest
6165 steps :
6266 - uses : actions/checkout@v4
@@ -66,13 +70,10 @@ jobs:
6670 key : build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
6771 restore-keys : |
6872 build-${{ runner.os }}-
69- - name : Check interpreter clippy lints
70- run : cargo clippy --no-deps
7173 - name : Run interpreter tests
7274 run : cargo test --lib
7375 # Test the site
7476 test_site :
75- needs : install_deps
7677 runs-on : ubuntu-latest
7778 steps :
7879 - uses : actions/checkout@v4
8687 run : cargo test -p site
8788 # Test ffi
8889 test_ffi :
89- needs : install_deps
9090 runs-on : ubuntu-latest
9191 steps :
9292 - uses : actions/checkout@v4
9898 build-${{ runner.os }}-
9999 - name : Run site tests
100100 run : cargo test -p tests_ffi
101- # check_features:
102- # needs: test_bin
103- # runs-on: ubuntu-latest
104- # steps:
105- # - uses: actions/checkout@v4
106- # - name: Check feature combinations
107- # run: cargo run ./.github/features.ua
0 commit comments