mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-04-01 18:25:30 +00:00
CI: cache Rust dependencies, use checkout@v3
This commit is contained in:
parent
d1cd02e233
commit
68e2928ae7
1 changed files with 6 additions and 2 deletions
8
.github/workflows/cargo-build-and-test.yml
vendored
8
.github/workflows/cargo-build-and-test.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue