@@ -42,21 +42,25 @@ jobs:
42
42
- uses : actions/checkout@v4
43
43
- name : Check formatting
44
44
run : cargo fmt --all --check
45
- install_deps :
46
- needs : check_formatting
45
+ clippy :
47
46
runs-on : ubuntu-latest
48
47
steps :
49
48
- 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
51
56
run : |
52
57
sudo apt-get update -y
53
58
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
57
62
# Test the interpreter
58
63
test_bin :
59
- needs : install_deps
60
64
runs-on : ubuntu-latest
61
65
steps :
62
66
- uses : actions/checkout@v4
@@ -66,13 +70,10 @@ jobs:
66
70
key : build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
67
71
restore-keys : |
68
72
build-${{ runner.os }}-
69
- - name : Check interpreter clippy lints
70
- run : cargo clippy --no-deps
71
73
- name : Run interpreter tests
72
74
run : cargo test --lib
73
75
# Test the site
74
76
test_site :
75
- needs : install_deps
76
77
runs-on : ubuntu-latest
77
78
steps :
78
79
- uses : actions/checkout@v4
86
87
run : cargo test -p site
87
88
# Test ffi
88
89
test_ffi :
89
- needs : install_deps
90
90
runs-on : ubuntu-latest
91
91
steps :
92
92
- uses : actions/checkout@v4
98
98
build-${{ runner.os }}-
99
99
- name : Run site tests
100
100
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