Merge pull request #95 from greatest-ape/greatest-ape-patch-1

CI: cache Rust dependencies, use checkout@v3
This commit is contained in:
Joakim Frostegård 2022-10-02 11:38:43 +02:00 committed by GitHub
commit 92794444f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
timeout-minutes: 25 timeout-minutes: 25
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install latest stable Rust - name: Install latest stable Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
@ -23,6 +23,8 @@ jobs:
override: true override: true
- name: Install dependencies - name: Install dependencies
run: sudo apt-get update -y && sudo apt-get install libhwloc-dev -y run: sudo apt-get update -y && sudo apt-get install libhwloc-dev -y
- name: Setup Rust dependency caching
uses: Swatinem/rust-cache@v2
- name: Build - name: Build
run: | run: |
cargo build --verbose -p aquatic_udp --features "cpu-pinning" cargo build --verbose -p aquatic_udp --features "cpu-pinning"
@ -36,12 +38,14 @@ jobs:
runs-on: macos-latest runs-on: macos-latest
timeout-minutes: 10 timeout-minutes: 10
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Install latest stable Rust - name: Install latest stable Rust
uses: actions-rs/toolchain@v1 uses: actions-rs/toolchain@v1
with: with:
profile: minimal profile: minimal
toolchain: stable toolchain: stable
override: true override: true
- name: Setup Rust dependency caching
uses: Swatinem/rust-cache@v2
- name: Build - name: Build
run: cargo build --verbose -p aquatic_udp run: cargo build --verbose -p aquatic_udp