ci: jq is already part of ci environment (#767)

* ci: jq is already part of ci environment

* ci: add --accept-flake-config flag to actually use the binary cache from flake.nix
This commit is contained in:
Rok Garbas 2024-05-02 17:01:00 +02:00 committed by GitHub
parent 7bdc02cc99
commit 850cdf4c3b
Failed to generate hash of commit
4 changed files with 5 additions and 10 deletions

View file

@ -21,8 +21,3 @@ runs:
with:
name: nixos-search
signingKey: '${{ inputs.CACHIX_SIGNING_KEY }}'
- name: Installing jq
shell: bash
run: |
nix-env -f '<nixpkgs>' -iA jq

View file

@ -27,4 +27,4 @@ jobs:
- name: Building flake-info
run: |
nix -vL build .#flake-info
nix --accept-flake-config -vL build .#flake-info

View file

@ -37,7 +37,7 @@ jobs:
do
echo "::group::Group \"$(basename $flake_group .toml)\""
nix run .#flake-info -- group "$flake_group" "$(basename "$flake_group" .toml)" --report
nix run --accept-flake-config .#flake-info -- group "$flake_group" "$(basename "$flake_group" .toml)" --report
if [[ -f "./report.txt" ]]
then

View file

@ -30,7 +30,7 @@ jobs:
- name: NixOS Channels
id: nixos-channels
run: |
nix build -L .#nixosChannels
nix build --accept-flake-config -L .#nixosChannels
channels="{\"channel\": $(< ./result)}"
echo "$channels"
echo "matrix=$channels" >> "$GITHUB_OUTPUT"
@ -62,7 +62,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
nix run .#flake-info -- --push --elastic-schema-version=$(< VERSION) nixpkgs ${{ matrix.channel }}
nix run --accept-flake-config .#flake-info -- --push --elastic-schema-version=$(< VERSION) nixpkgs ${{ matrix.channel }}
if: github.repository_owner == 'NixOS'
- name: Warmup ${{ matrix.channel }} channel
@ -110,7 +110,7 @@ jobs:
- name: Import ${{ matrix.group }} group
run: |
nix run .#flake-info -- --push --elastic-schema-version=$(< ./VERSION) group ./flakes/${{ matrix.group }}.toml ${{ matrix.group }}
nix run --accept-flake-config .#flake-info -- --push --elastic-schema-version=$(< ./VERSION) group ./flakes/${{ matrix.group }}.toml ${{ matrix.group }}
if: github.repository_owner == 'NixOS'
- name: Warmup ${{ matrix.group }} group