From f9dedce7b9167711b8551c01f6a421985a8d66c5 Mon Sep 17 00:00:00 2001 From: Collin Diekvoss Date: Tue, 29 Oct 2024 10:34:27 -0500 Subject: [PATCH] accept flake config when building --- .github/workflows/build.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3333f0e..65dae72 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -18,7 +18,7 @@ jobs: - name: Install Magic Nix Cache uses: DeterminateSystems/magic-nix-cache-action@main - - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo + - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --accept-flake-config --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo env: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -26,7 +26,7 @@ jobs: runs-on: [self-hosted, linux, ARM64] steps: - - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo + - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --accept-flake-config --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo env: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -34,7 +34,7 @@ jobs: runs-on: [self-hosted, macOS, ARM64] steps: - - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo + - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --accept-flake-config --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo env: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }} @@ -42,6 +42,6 @@ jobs: runs-on: [self-hosted, macOS, x64] steps: - - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo + - run: nix build github:$GITHUB_REPOSITORY/$GITHUB_SHA --accept-flake-config --json | nix run nixpkgs#jq -- -r '.[].outputs | to_entries[].value' | nix run nixpkgs#cachix push toyvo env: CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}