Skip to content

Commit

Permalink
ci: set extra-platforms globally; maybe it'll work there
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhys-T committed Oct 17, 2024
1 parent c477310 commit 76e9851
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
extra_nix_config: |
experimental-features = nix-command flakes
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
${{ matrix.qemuSystem && format('extra-platforms = {0}', matrix.qemuSystem)}}
- name: Show nixpkgs version
run: nix-instantiate --eval -E '(import <nixpkgs> {}).lib.version'
- name: Setup cachix
Expand All @@ -85,7 +86,7 @@ jobs:
-I $PWD
- name: Build nix packages
# run: nix shell -f '<nixpkgs>' nix-build-uncached -c nix-build-uncached ci.nix -A cacheOutputs
run: nix shell -f '.' nix-build-uncached-logging -c nix-build-uncached ci.nix ${{ matrix.qemuSystem && format('--extra-platforms {0} --argstr platform {0}', matrix.qemuSystem)}} -A cacheOutputs
run: nix shell -f '.' nix-build-uncached-logging -c nix-build-uncached ci.nix ${{ matrix.qemuSystem && format('--argstr platform {0}', matrix.qemuSystem)}} -A cacheOutputs
- name: Trigger NUR update
# Don't replace <YOUR_REPO_NAME> here!
if: ${{ matrix.nurRepo != '<YOUR_REPO_NAME>' }}
Expand Down

0 comments on commit 76e9851

Please sign in to comment.