This repository was archived by the owner on Apr 17, 2024. It is now read-only.
Merge pull request #83 from Levana-Protocol/hacky-upload #105
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: Rust | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
CARGO_INCREMENTAL: 0 | |
CARGO_NET_RETRY: 10 | |
RUST_BACKTRACE: short | |
RUSTUP_MAX_RETRIES: 10 | |
jobs: | |
rust: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: extractions/setup-just@v1 | |
with: | |
just-version: 1.10.0 | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: | | |
. | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: 1.70.0 | |
components: clippy, rustfmt | |
- name: Compile workspace | |
run: just cargo-compile | |
- name: Build workspace | |
run: just build-app | |
- name: Lint | |
run: | | |
just cargo-clippy-check | |
just cargo-fmt-check | |
- name: Tests | |
run: just cargo-test |