bump rust #99
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: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
push: | |
branches: [main] | |
jobs: | |
ci: | |
name: CI | |
needs: [fmt, xtask] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Done | |
run: exit 0 | |
fmt: | |
name: Rustfmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: stable | |
components: rustfmt | |
- run: cargo fmt -- --check | |
xtask: | |
name: Run CI | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
fetch-depth: 0 # fetch tags for publish | |
ssh-key: "${{ secrets.COMMIT_KEY }}" # use deploy key to trigger workflow | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@v1 | |
with: | |
toolchain: 1.74 | |
components: clippy | |
- name: Install rust matcher | |
run: echo "::add-matcher::.github/rust.json" | |
shell: bash | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- run: git tag --list | |
- run: cargo xtask |