ci: add build workflow #1
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 | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
id-token: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
- name: Setup Nix Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Check Flake | |
run: nix flake check | |
- name: Build Node Tool | |
run: nix develop --command cargo build --profile release | |
- name: Build Flake | |
run: nix build |