Build overhaul #2912
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
name: Lints Workflow | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
lints: | |
runs-on: ubuntu-latest | |
timeout-minutes: 25 | |
steps: | |
- name: Cancel Outdated Builds | |
uses: styfle/[email protected] | |
with: | |
all_but_latest: true | |
access_token: ${{ github.token }} | |
- name: Install Nix | |
uses: cachix/install-nix-action@v23 | |
- name: Nix Caching | |
uses: cachix/cachix-action@v12 | |
with: | |
name: espresso-systems-private | |
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Format Check | |
run: cargo fmt -- --check | |
# See how long just nix setup takes | |
- name: Initialize nix | |
run: nix develop -c echo Finished | |
- name: Clippy async_std | |
run: nix develop -c just async_std lint | |
- name: Clippy tokio | |
run: nix develop -c just tokio lint |