Skip to content

Commit

Permalink
accept flake config when building
Browse files Browse the repository at this point in the history
  • Loading branch information
ToyVo committed Oct 29, 2024
1 parent 3cbafe4 commit f9dedce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,30 @@ 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 }}

aarch64-linux:
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 }}

aarch64-darwin:
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 }}

x86_64-darwin:
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 }}

0 comments on commit f9dedce

Please sign in to comment.