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: with:
name: nixos-search name: nixos-search
signingKey: '${{ inputs.CACHIX_SIGNING_KEY }}' 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 - name: Building flake-info
run: | run: |
nix -vL build .#flake-info nix --accept-flake-config -vL build .#flake-info

View file

@ -37,7 +37,7 @@ jobs:
do do
echo "::group::Group \"$(basename $flake_group .toml)\"" 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" ]] if [[ -f "./report.txt" ]]
then then

View file

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