-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2079 from foresterre/workflows
Update workflows
- Loading branch information
Showing
6 changed files
with
209 additions
and
215 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: clippy | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
merge_group: | ||
jobs: | ||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout_repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: install_rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
|
||
- name: install_nasm | ||
uses: ilammy/setup-nasm@v1 | ||
|
||
- name: clippy | ||
run: cargo clippy --all-targets --all-features --workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: cargo_deny | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
merge_group: | ||
jobs: | ||
cargo_deny: | ||
name: cargo_deny | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
checks: | ||
- advisories | ||
- bans licenses sources | ||
|
||
continue-on-error: ${{ matrix.checks == 'advisories' }} | ||
steps: | ||
- name: checkout_repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: install_rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: clippy | ||
|
||
- uses: EmbarkStudios/cargo-deny-action@v1 | ||
with: | ||
log-level: error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
name: msrv | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
merge_group: | ||
schedule: | ||
- cron: '00 06 * * *' | ||
jobs: | ||
msrv_stable: | ||
name: msrv_stable | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: checkout_repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: install_rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: install_cargo_msrv | ||
run: cargo install cargo-msrv # 0.15.x | ||
|
||
- name: version_of_cargo_msrv | ||
run: cargo msrv --version | ||
|
||
- name: install_nasm | ||
uses: ilammy/setup-nasm@v1 | ||
|
||
- name: run_cargo_msrv_verify | ||
run: cargo msrv --output-format json verify -- cargo check | ||
|
||
- name: run_cargo_msrv_on_verify_failure | ||
if: ${{ failure() }} | ||
run: cargo msrv --output-format json -- cargo check | ||
|
||
# The same as the 'msrv' job, except it takes the latest release, including beta releases | ||
# We don't use --all-features here! | ||
msrv_beta: | ||
name: msrv_beta | ||
runs-on: ubuntu-latest | ||
continue-on-error: true | ||
steps: | ||
- name: checkout_repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: install_rust | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-binstall | ||
|
||
- name: install_cargo_msrv_bin | ||
run: cargo binstall --version 0.16.0-beta.25 --no-confirm cargo-msrv # 0.16.x (beta) | ||
|
||
- name: version_of_cargo_msrv | ||
run: cargo msrv --version | ||
|
||
- name: install_nasm | ||
uses: ilammy/setup-nasm@v1 | ||
|
||
- name: run_cargo_msrv_verify | ||
run: cargo msrv verify --output-format json | ||
|
||
- name: run_cargo_msrv_on_verify_failure | ||
if: ${{ failure() }} | ||
run: cargo msrv find --output-format json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: rustfmt | ||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
merge_group: | ||
jobs: | ||
rustfmt: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout_repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: install_rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
|
||
- name: fmt | ||
run: cargo fmt --all -- --check |
Oops, something went wrong.