Skip to content

Commit 22a6a0d

Browse files
committed
ci: only ubuntu
1 parent 38ee9e0 commit 22a6a0d

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

.github/workflows/rust.yaml

+10-16
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,29 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414

15-
strategy:
16-
matrix:
17-
rust: [stable, beta, nightly]
18-
os: [ubuntu-latest, macos-latest]
19-
2015
steps:
2116
- name: Checkout code
2217
uses: actions/checkout@v3
2318

24-
- name: Install libpcap (Ubuntu)
25-
if: matrix.os == 'ubuntu-latest'
19+
- name: Install libpcap
2620
run: sudo apt-get update && sudo apt-get install -y libpcap-dev
2721

22+
- name: Set up Rust
23+
uses: actions-rs/toolchain@v1
24+
with:
25+
toolchain: stable
26+
profile: minimal
27+
override: true
28+
2829
- name: Cache cargo registry
2930
uses: actions/cache@v3
3031
with:
3132
path: |
3233
~/.cargo/registry
3334
~/.cargo/git
34-
key: ${{ matrix.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
35+
key: ubuntu-cargo-${{ hashFiles('**/Cargo.lock') }}
3536
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-
4438
4539
- name: Install dependencies
4640
run: cargo fetch

0 commit comments

Comments
 (0)