Standardise CI & Makefile across Miden repos #23
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
# Runs linting related jobs. | |
name: lint | |
on: | |
push: | |
branches: [main, next] | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
version: | |
name: check rust version consistency | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
with: | |
profile: minimal | |
override: true | |
- name: check rust versions | |
run: ./scripts/check-rust-version.sh | |
rustfmt: | |
name: rustfmt check nightly on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Rustfmt | |
run: | | |
rustup update --no-self-update nightly | |
rustup +nightly component add rustfmt | |
make format-check | |
clippy: | |
name: clippy nightly on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Clippy | |
run: | | |
rustup update --no-self-update nightly | |
rustup +nightly component add clippy | |
make clippy | |
doc: | |
name: doc stable on ubuntu-latest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@main | |
- name: Build docs | |
run: | | |
rustup update --no-self-update | |
make doc | |