-
Notifications
You must be signed in to change notification settings - Fork 1
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 #19 from moia-oss/bump-nightly2
use other toolchain, bump nightly
- Loading branch information
Showing
4 changed files
with
34 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,18 @@ on: | |
jobs: | ||
udeps: | ||
name: Check for unused dependencies | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/[email protected] | ||
- run: | | ||
echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV | ||
echo "RUST_TOOLCHAIN_NIGHTLY=$(cat ./rust-toolchain-nightly)" >> $GITHUB_ENV | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2022-09-22 | ||
override: true | ||
- run: cargo install cargo-udeps | ||
- uses: Swatinem/rust-cache@v1 | ||
toolchain: ${{ env.RUST_TOOLCHAIN_NIGHTLY }} | ||
- name: Cargo Install | ||
run: cargo install cargo-udeps | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
sharedKey: debug-build-nightly | ||
shared-key: debug-build-nightly | ||
- run: make udeps |
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 |
---|---|---|
@@ -1,37 +1,39 @@ | ||
name: PR | ||
name: pr | ||
|
||
on: | ||
pull_request: | ||
branches: ['*'] | ||
on: [pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/[email protected] | ||
- run: echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
override: true | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
components: rustfmt, clippy | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
sharedKey: debug-build | ||
- run: make test | ||
shared-key: debug-build | ||
- name: Make test | ||
run: make test | ||
lint: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions-rs/[email protected] | ||
- run: | | ||
echo "RUST_TOOLCHAIN=$(cat ./rust-toolchain)" >> $GITHUB_ENV | ||
echo "RUST_TOOLCHAIN_NIGHTLY=$(cat ./rust-toolchain-nightly)" >> $GITHUB_ENV | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: nightly-2023-01-26 | ||
override: true | ||
toolchain: ${{ env.RUST_TOOLCHAIN_NIGHTLY }} | ||
components: rustfmt | ||
- uses: actions-rs/toolchain@v1.0.7 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
override: true | ||
toolchain: ${{ env.RUST_TOOLCHAIN }} | ||
components: rustfmt, clippy | ||
- uses: Swatinem/rust-cache@v1 | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
sharedKey: debug-build-nightly | ||
- run: make lint | ||
|
||
shared-key: debug-build-nightly | ||
- name: Make lint | ||
run: make lint |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
nightly-2023-02-16 |