File tree 1 file changed +17
-7
lines changed 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 10
10
11
11
jobs :
12
12
check :
13
- runs-on : ubuntu-22.04
14
13
strategy :
15
14
matrix :
15
+ image_ref : ['20.04', '22.04', '23.04', '23.10']
16
16
subcommand : ['fmt', 'build', 'clippy', 'test']
17
17
include :
18
- - subcommand : ' clippy'
19
- # treat warnings as errors
20
- args : ' -- -D warnings'
21
- - subcommand : ' fmt'
22
- args : ' --check'
18
+ - subcommand : ' clippy'
19
+ # treat warnings as errors
20
+ args : ' -- -D warnings'
21
+ - subcommand : ' fmt'
22
+ args : ' --check'
23
+ - subcommand : ' build'
24
+
25
+ runs-on : ubuntu-latest
26
+ container :
27
+ image : ubuntu:${{ matrix.image_ref }}
23
28
steps :
24
29
- uses : actions/checkout@v4
25
30
31
+ - run : apt-get update && apt-get install -y curl build-essential clang
32
+
26
33
- name : Install Rust toolchain
27
34
uses : dtolnay/rust-toolchain@stable
35
+ with :
36
+ components : ' clippy,rustfmt'
37
+
28
38
29
39
- name : Install crate dependencies
30
- run : sudo apt-get install -y libxen-dev
40
+ run : apt-get install -y libxen-dev
31
41
32
42
- run : cargo ${{ matrix.subcommand }} ${{ matrix.args }}
33
43
You can’t perform that action at this time.
0 commit comments