diff options
| author | Caleb Maclennan <caleb@alerque.com> | 2023-06-28 13:31:50 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-28 12:31:50 +0200 |
| commit | c44bad5739d971cb9de8c9998da384ba9a6d76c8 (patch) | |
| tree | e4df70c99abe8beca65a234d50f54b8cb17ddacf /.github/workflows | |
| parent | 04bffc4f12ff7dd85d25f5fd65506440287f879c (diff) | |
Test build and run Nix Flake in CI (#1477)
Co-authored-by: figsoda <figsoda@pm.me>
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c6743f86..1dff798b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,6 +1,10 @@ name: Continuous integration on: [push, pull_request] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + env: RUSTFLAGS: "-Dwarnings" RUSTDOCFLAGS: "-Dwarnings" @@ -35,3 +39,15 @@ jobs: - uses: dtolnay/rust-toolchain@1.70.0 - uses: Swatinem/rust-cache@v2 - run: cargo check --workspace + + nix-flake: + name: Test Nix Flake + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: DeterminateSystems/nix-installer-action@v4 + - uses: DeterminateSystems/magic-nix-cache-action@v2 + - run: nix flake check + - run: nix build + - run: nix shell -c typst --version + - run: nix run . -- --version |
