Replace deprecated github ci actions (#48)
This commit is contained in:
parent
3d496e044f
commit
56a7cd72b4
27
.github/workflows/ci_checks.yml
vendored
27
.github/workflows/ci_checks.yml
vendored
@ -25,42 +25,35 @@ jobs:
|
|||||||
- windows-latest
|
- windows-latest
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@master
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: ${{ matrix.rust }}
|
||||||
override: true
|
target: thumbv6m-none-eabi
|
||||||
- run: cargo install flip-link
|
- run: cargo install flip-link
|
||||||
- run: rustup target install --toolchain=${{ matrix.rust }} thumbv6m-none-eabi
|
|
||||||
- run: cargo build --all
|
- run: cargo build --all
|
||||||
- run: cargo build --all --release
|
- run: cargo build --all --release
|
||||||
linting:
|
linting:
|
||||||
name: Linting
|
name: Linting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
|
||||||
components: clippy
|
components: clippy
|
||||||
- run: rustup target install thumbv6m-none-eabi
|
target: thumbv6m-none-eabi
|
||||||
- uses: actions-rs/clippy-check@v1
|
- run: cargo clippy --all-features -- --deny=warnings
|
||||||
with:
|
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
args: --all-features -- -D warnings
|
|
||||||
formatting:
|
formatting:
|
||||||
name: Formatting
|
name: Formatting
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: dtolnay/rust-toolchain@stable
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- run: rustup target install thumbv6m-none-eabi
|
target: thumbv6m-none-eabi
|
||||||
- run: cargo fmt -- --check
|
- run: cargo fmt -- --check
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user