-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Update Rust version and runner step
- Loading branch information
1 parent
17c084f
commit 74243e3
Showing
2 changed files
with
8 additions
and
19 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,9 +7,8 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: dtolnay/rust-toolchain@master | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
components: rustfmt | ||
- name: Run rustfmt | ||
run: cargo fmt --all -- --check | ||
|
@@ -42,9 +41,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Build mavlink-dump | ||
run: cargo build --verbose --bin mavlink-dump --features ardupilotmega | ||
|
||
|
@@ -54,13 +51,12 @@ jobs: | |
- uses: actions/checkout@master | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: stable | ||
override: true | ||
toolchain: 1.65.0 | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
command: check | ||
args: --all-targets | ||
args: --all --all-targets | ||
|
||
build: | ||
needs: [formatting, linting, internal-tests, mavlink-dump, msrv] | ||
|
@@ -101,11 +97,9 @@ jobs: | |
- name: Building ${{ matrix.TARGET }} | ||
run: echo "${{ matrix.TARGET }}" | ||
- uses: actions/checkout@master | ||
- uses: dtolnay/rust-toolchain@master | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: stable | ||
target: ${{ matrix.TARGET }} | ||
override: true | ||
- uses: actions-rs/cargo@v1 | ||
with: | ||
use-cross: true | ||
|
@@ -117,11 +111,9 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: dtolnay/rust-toolchain@master | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly | ||
target: thumbv7em-none-eabihf | ||
override: true | ||
- name: Build | ||
run: cargo +nightly build --target thumbv7em-none-eabihf --manifest-path examples/embedded/Cargo.toml --out-dir $PWD --release -Z unstable-options | ||
|
||
|
@@ -130,10 +122,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
override: true | ||
- uses: dtolnay/rust-toolchain@stable | ||
- name: Build docs | ||
run: cargo doc | ||
- name: Deploy | ||
|
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