@@ -42,21 +42,29 @@ 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
59
+ sudo apt-get install libasound2-dev pkg-config libx11-dev libjpeg-dev
55
60
- name : Install WASM target
56
61
run : rustup target add wasm32-unknown-unknown
62
+ - name : Run clippy
63
+ run : |
64
+ cargo clippy --no-deps --all-targets --workspace --all-features -- --deny=warnings
65
+ cargo clippy --no-deps --all-targets --workspace --all-features --target wasm32-unknown-unknown -- --deny=warnings
57
66
# Test the interpreter
58
67
test_bin :
59
- needs : install_deps
60
68
runs-on : ubuntu-latest
61
69
steps :
62
70
- uses : actions/checkout@v4
@@ -66,13 +74,10 @@ jobs:
66
74
key : build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
67
75
restore-keys : |
68
76
build-${{ runner.os }}-
69
- - name : Check interpreter clippy lints
70
- run : cargo clippy --no-deps
71
77
- name : Run interpreter tests
72
78
run : cargo test --lib
73
79
# Test the site
74
80
test_site :
75
- needs : install_deps
76
81
runs-on : ubuntu-latest
77
82
steps :
78
83
- uses : actions/checkout@v4
86
91
run : cargo test -p site
87
92
# Test ffi
88
93
test_ffi :
89
- needs : install_deps
90
94
runs-on : ubuntu-latest
91
95
steps :
92
96
- uses : actions/checkout@v4
@@ -98,10 +102,3 @@ jobs:
98
102
build-${{ runner.os }}-
99
103
- name : Run site tests
100
104
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