Merge pull request #194 from NotAShelf/master #30
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: "Build with Cargo" | |
on: | |
workflow_call: | |
workflow_dispatch: | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v26 | |
- uses: DeterminateSystems/magic-nix-cache-action@main | |
- uses: nicknovitski/nix-develop@v1 | |
- uses: actions-rs/toolchain@v1 | |
name: Install rust toolchain | |
with: | |
toolchain: nightly | |
override: true | |
- uses: Swatinem/rust-cache@v2 | |
name: Add caching | |
- uses: actions-rs/cargo@v1 | |
name: Build crate | |
with: | |
command: build | |
args: --verbose |