Skip to content

Commit

Permalink
Replace action-rs/toolchain with direct rustup
Browse files Browse the repository at this point in the history
Signed-off-by: rusty-snake <41237666+rusty-snake@users.noreply.github.com>
  • Loading branch information
rusty-snake committed Jan 24, 2023
1 parent 139c54f commit 1748422
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/build-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
types: [opened, reopened, edited, synchronize]

env:
msrv: 1.46.0
msrv: 1.46

jobs:
validate:
Expand Down Expand Up @@ -118,14 +118,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- name: Install Rust ${{ env.msrv }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.msrv }}
override: true
run: rustup default ${{ env.msrv }}
- name: Install upstream libseccomp
run: sudo ./scripts/install_libseccomp.sh
- name: Build crate with all target and features
run: |
cargo -vV
cargo clean
cargo build --all-targets --all-features
- name: Run test
Expand All @@ -137,18 +135,16 @@ jobs:
strategy:
fail-fast: false
matrix:
rust: [1.52.0, 1.53.0]
rust: [1.52, 1.53]
steps:
- uses: actions/checkout@v3
- name: Install Rust ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
override: true
run: rustup default ${{ matrix.rust }}
- name: Install upstream libseccomp
run: sudo ./scripts/install_libseccomp.sh
- name: Build crate with all target and features
run: |
cargo -vV
cargo clean
cargo build --all-targets --all-features
- name: Run test
Expand Down

0 comments on commit 1748422

Please sign in to comment.