Commit 22a6a0d 1 parent 38ee9e0 commit 22a6a0d Copy full SHA for 22a6a0d
File tree 1 file changed +10
-16
lines changed
1 file changed +10
-16
lines changed Original file line number Diff line number Diff line change @@ -12,35 +12,29 @@ jobs:
12
12
build :
13
13
runs-on : ubuntu-latest
14
14
15
- strategy :
16
- matrix :
17
- rust : [stable, beta, nightly]
18
- os : [ubuntu-latest, macos-latest]
19
-
20
15
steps :
21
16
- name : Checkout code
22
17
uses : actions/checkout@v3
23
18
24
- - name : Install libpcap (Ubuntu)
25
- if : matrix.os == 'ubuntu-latest'
19
+ - name : Install libpcap
26
20
run : sudo apt-get update && sudo apt-get install -y libpcap-dev
27
21
22
+ - name : Set up Rust
23
+ uses : actions-rs/toolchain@v1
24
+ with :
25
+ toolchain : stable
26
+ profile : minimal
27
+ override : true
28
+
28
29
- name : Cache cargo registry
29
30
uses : actions/cache@v3
30
31
with :
31
32
path : |
32
33
~/.cargo/registry
33
34
~/.cargo/git
34
- key : ${{ matrix.os }} -cargo-${{ matrix.rust }} -${{ hashFiles('**/Cargo.lock') }}
35
+ key : ubuntu -cargo-${{ hashFiles('**/Cargo.lock') }}
35
36
restore-keys : |
36
- ${{ matrix.os }}-cargo-${{ matrix.rust }}-
37
-
38
- - name : Set up Rust
39
- uses : actions-rs/toolchain@v1
40
- with :
41
- toolchain : ${{ matrix.rust }}
42
- profile : minimal
43
- override : true
37
+ ubuntu-cargo-
44
38
45
39
- name : Install dependencies
46
40
run : cargo fetch
You can’t perform that action at this time.
0 commit comments