release: v0.1.1 #2
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: code verification | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- "master" | |
pull_request: {} | |
env: | |
CARGO_INCREMENTAL: 0 | |
SCCACHE_GHA_ENABLED: "true" | |
RUSTC_WRAPPER: sccache | |
IN_CI: "true" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo and build scripts | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run sccache | |
uses: mozilla-actions/[email protected] | |
- name: Build | |
run: cargo build | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo and build scripts | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run sccache | |
uses: mozilla-actions/[email protected] | |
- name: rustfmt nightly | |
run: | | |
rustup toolchain install nightly-x86_64-unknown-linux-gnu | |
rustup component add rustfmt --toolchain nightly-x86_64-unknown-linux-gnu | |
- name: Install Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repo and build scripts | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Run sccache | |
uses: mozilla-actions/[email protected] | |
- name: Test | |
run: cargo test |