Skip to content

Commit

Permalink
actions: replace Rust actions with direct use of rustup and cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
miek committed Sep 16, 2024
1 parent 8d708ba commit d206c5c
Showing 1 changed file with 11 additions and 17 deletions.
28 changes: 11 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install stable components
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
components: clippy
- name: Install toolchain
run: |
rustup toolchain install stable
rustup default stable
- name: Run clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --verbose --release -- -D warnings
run: cargo clippy -- --deny warnings

build_and_test:
name: Rust project
Expand All @@ -44,13 +39,12 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --all-features
- name: Install toolchain
run: |
rustup toolchain install ${{ matrix.rust }}
rustup default ${{ matrix.rust }}
- name: Build
run: cargo build --release
- uses: actions/upload-artifact@v4
with:
name: plotsweep ${{ matrix.os }} rust-${{ matrix.rust }}
Expand Down

0 comments on commit d206c5c

Please sign in to comment.