@@ -11,8 +11,8 @@ name: Linux x86_64
1111
1212jobs :
1313 check :
14- name : Check
15- runs-on : ubuntu-22 .04
14+ name : Check code
15+ runs-on : ubuntu-20 .04
1616 steps :
1717 - name : Checkout
1818 uses : actions/checkout@v4
@@ -21,39 +21,18 @@ jobs:
2121
2222 - name : Install Rust
232324-
25- - name : Rust cache
26- uses : swatinem/rust-cache@v2
27-
28- - name : cargo check
29- run : cargo check
30-
31- generate :
32- name : Generate low-level API
33- runs-on : ubuntu-22.04
34- steps :
35- - name : Set up dependencies
36- run : |
37- sudo apt-get update
38- sudo apt-get install clang
39-
40- - name : Checkout
41- uses : actions/checkout@v4
4224 with :
43- submodules : recursive
44-
45- - name : Install Rust
46- 25+ components : clippy
4726
4827 - name : Rust cache
4928 uses : swatinem/rust-cache@v2
5029
51- - name : cargo build
52- run : cargo build --manifest-path main/low/Cargo.toml --features generate
30+ - name : cargo clippy
31+ run : cargo clippy -- -D warnings
5332
5433 test :
5534 name : Run tests
56- runs-on : ubuntu-22 .04
35+ runs-on : ubuntu-20 .04
5736 steps :
5837 - name : Checkout
5938 uses : actions/checkout@v4
@@ -69,18 +48,12 @@ jobs:
6948 - name : cargo build
7049 run : cargo build
7150
72- - name : Upload test plug-ins
73- uses : actions/upload-artifact@v4
74- with :
75- name : test-plug-ins
76- path : target/debug/*.so
77-
7851 - name : cargo test
7952 run : cargo test -- --nocapture
8053
8154 fmt :
8255 name : Check formatting
83- runs-on : ubuntu-22 .04
56+ runs-on : ubuntu-20 .04
8457 steps :
8558 - name : Checkout
8659 uses : actions/checkout@v4
10073
10174 doc :
10275 name : Check docs
103- runs-on : ubuntu-22 .04
76+ runs-on : ubuntu-20 .04
10477 steps :
10578 - name : Checkout
10679 uses : actions/checkout@v4
@@ -118,22 +91,25 @@ jobs:
11891 - name : cargo doc
11992 run : cargo doc
12093
121- clippy :
122- name : Check clippy lints
123- runs-on : ubuntu-22 .04
94+ generate :
95+ name : Generate low-level API
96+ runs-on : ubuntu-20 .04
12497 steps :
98+ - name : Set up dependencies
99+ run : |
100+ sudo apt-get update
101+ sudo apt-get install clang
102+
125103 - name : Checkout
126104 uses : actions/checkout@v4
127105 with :
128106 submodules : recursive
129107
130108 - name : Install Rust
131109132- with :
133- components : clippy
134110
135111 - name : Rust cache
136112 uses : swatinem/rust-cache@v2
137113
138- - name : cargo clippy
139- run : cargo clippy -- -D warnings
114+ - name : cargo build
115+ run : cargo build --manifest-path main/low/Cargo.toml --features generate
0 commit comments