Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop/replace unmaintained rust actions #136

Merged
merged 1 commit into from
Oct 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 9 additions & 21 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install rust ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
override: true
profile: minimal

- name: Install Development Tools packages
# required to be able to build rust packages: Development Tools
Expand All @@ -57,18 +55,14 @@ jobs:

- name: Test
if: ${{ matrix.coverage != true }}
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
run: |
cargo test --all-features --no-fail-fast

- name: Test + Coverage
# -Z flag is available only on rust nightly
if: ${{ matrix.coverage == true }}
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features --no-fail-fast
run: |
cargo test --all-features --no-fail-fast
env:
CARGO_INCREMENTAL: '0'
RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests'
Expand All @@ -94,18 +88,14 @@ jobs:
- uses: actions/checkout@v4

- name: Install latest stable rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
profile: minimal
components: rustfmt

- name: Check format
uses: actions-rs/cargo@v1
with:
command: fmt
args: -- --check
run: |
cargo fmt -- --check

clippy:
name: Cargo Clippy
Expand All @@ -118,11 +108,9 @@ jobs:
- uses: actions/checkout@v4

- name: Install latest nightly rust
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly
override: true
profile: minimal
components: clippy

# https://github.com/psastras/sarif-rs
Expand Down
Loading