Prepare for 0.18.0 release. #985
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [ master, staging, trying ] | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
continue-on-error: ${{ matrix.rust_version == 'nightly' }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust stable | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
profile: minimal | |
components: rustfmt | |
- name: Install Rust | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust_version }} | |
profile: minimal | |
override: true | |
- name: Install Arm targets | |
run: > | |
rustup target add | |
thumbv6m-none-eabi | |
thumbv7em-none-eabi | |
thumbv7em-none-eabihf | |
thumbv8m.main-none-eabi | |
- name: Build Crates | |
run: mv Cargo.ci.toml Cargo.toml && cargo test | |
env: | |
RUSTFLAGS: ${{ matrix.rustflags }} | |
strategy: | |
matrix: | |
rust_version: [beta, nightly] | |
include: | |
- rust_version: stable | |
rustflags: --deny warnings | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Copy Cargo.toml | |
run: cp Cargo.ci.toml Cargo.toml | |
- name: Format Rust code | |
run: cargo fmt --all -- --check | |
ci: | |
if: ${{ success() }} | |
# all new jobs must be added to this list | |
needs: [build, format] | |
runs-on: ubuntu-latest | |
steps: | |
- name: CI succeeded | |
run: exit 0 |