-
Notifications
You must be signed in to change notification settings - Fork 2
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 #9 from rgallor/chore/update-deps
update deps and MSRV
- Loading branch information
Showing
8 changed files
with
69 additions
and
48 deletions.
There are no files selected for viewing
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
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
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
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 |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
workflow_call: | ||
env: | ||
CARGO_TERM_COLOR: always | ||
SCCACHE_GHA_ENABLED: "true" | ||
RUSTC_WRAPPER: "sccache" | ||
defaults: | ||
run: | ||
working-directory: rust | ||
|
@@ -23,13 +25,10 @@ jobs: | |
with: | ||
components: rustfmt | ||
- name: Check formatting | ||
run: cargo fmt --check | ||
run: cargo fmt --check --all | ||
clippy: | ||
runs-on: ubuntu-latest | ||
name: ${{ matrix.toolchain }} / clippy | ||
permissions: | ||
contents: read | ||
checks: write | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -41,20 +40,21 @@ jobs: | |
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
components: clippy | ||
- name: Install sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: cargo clippy | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --manifest-path rust/Cargo.toml --all-targets --all-features -- -D warnings | ||
run: cargo clippy --all-targets --all-features --workspace -- -D warnings | ||
doc: | ||
runs-on: ubuntu-latest | ||
name: nightly / doc | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install nightly | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: Install sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: cargo doc | ||
run: cargo doc --no-deps --all-features | ||
run: cargo doc --no-deps --all-features --workspace | ||
env: | ||
RUSTDOCFLAGS: --cfg docsrs -D warnings | ||
hack: | ||
|
@@ -64,41 +64,46 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: cargo install cargo-hack | ||
uses: taiki-e/install-action@cargo-hack | ||
# intentionally no target specifier; see https://github.com/jonhoo/rust-ci-conf/pull/4 | ||
- name: cargo hack | ||
run: cargo hack --feature-powerset check | ||
run: cargo hack --workspace --feature-powerset check | ||
minimal-versions: | ||
runs-on: ubuntu-latest | ||
name: ubuntu / nightly / minimal-versions | ||
name: ubuntu / stable / minimal-versions | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install nightly | ||
- name: Install stable | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install nightly for -Zminimal-versions | ||
uses: dtolnay/rust-toolchain@nightly | ||
- name: cargo install cargo-hack | ||
- name: Install cargo hack | ||
uses: taiki-e/install-action@cargo-hack | ||
- name: remove dev-deps | ||
run: cargo hack --remove-dev-deps | ||
- name: update to minimal deps | ||
run: cargo update -Z direct-minimal-versions | ||
- name: cargo check | ||
run: cargo check --all-features | ||
- name: Install cargo minimal-versions | ||
uses: taiki-e/install-action@cargo-minimal-versions | ||
- name: Install sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: rustup default stable | ||
run: rustup default stable | ||
- name: Check minimal versions | ||
run: cargo minimal-versions check --workspace --ignore-private --detach-path-deps=skip-exact --direct | ||
env: | ||
RUSTDOCFLAGS: -D warnings | ||
RUSTFLAGS: -D warnings | ||
msrv: | ||
runs-on: ubuntu-latest | ||
# we use a matrix here just because env can't be used in job names | ||
# https://docs.github.com/en/actions/learn-github-actions/contexts#context-availability | ||
strategy: | ||
matrix: | ||
msrv: [1.66.1] | ||
msrv: [ 1.72.0 ] | ||
name: ubuntu / ${{ matrix.msrv }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install ${{ matrix.msrv }} | ||
uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ matrix.msrv }} | ||
- name: Install sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
- name: cargo +${{ matrix.msrv }} check | ||
run: cargo check --all-features --package edgehog-device-forwarder-proto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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