From 9afb9a9a32b4af259ccfbff3f06d217d3292bde3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20Bori?= Date: Mon, 28 Jul 2025 18:50:56 +0200 Subject: [PATCH] Added GitHub action step to build the Nix derivation --- .github/workflows/build.yml | 16 ++++++++++++++-- .gitignore | 3 +++ 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 06464af..871e86d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,11 +1,11 @@ -name: debug_build +name: build on: workflow_run: workflows: ["Test Workflow"] types: - completed jobs: - debug_build: + build: if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest @@ -29,3 +29,15 @@ jobs: name: fastanime_debug_build path: | dist + + - name: Install nix + uses: DeterminateSystems/nix-installer-action@main + + - name: Use GitHub Action built-in cache + uses: DeterminateSystems/magic-nix-cache-action@main + + - name: Nix Flake check (evaluation + tests) + run: nix flake check + + - name: Build the nix derivation + run: nix build diff --git a/.gitignore b/.gitignore index 2660c5d..f9af1fd 100644 --- a/.gitignore +++ b/.gitignore @@ -209,3 +209,6 @@ __marimo__/ # custom repomix-output.xml .project/ + +# Nix artifact +result