Skip to content

Commit

Permalink
ci: only ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-lohrer-su committed Sep 23, 2024
1 parent 38ee9e0 commit 22a6a0d
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/rust.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,29 @@ jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
rust: [stable, beta, nightly]
os: [ubuntu-latest, macos-latest]

steps:
- name: Checkout code
uses: actions/checkout@v3

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

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
key: ${{ matrix.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}
key: ubuntu-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ matrix.os }}-cargo-${{ matrix.rust }}-
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
ubuntu-cargo-
- name: Install dependencies
run: cargo fetch
Expand Down

0 comments on commit 22a6a0d

Please sign in to comment.