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:
parent
7bdc02cc99
commit
850cdf4c3b
5
.github/actions/common-setup/action.yml
vendored
5
.github/actions/common-setup/action.yml
vendored
|
@ -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
|
|
||||||
|
|
2
.github/workflows/build-flake-info.yml
vendored
2
.github/workflows/build-flake-info.yml
vendored
|
@ -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
|
||||||
|
|
2
.github/workflows/check-flake-files.yml
vendored
2
.github/workflows/check-flake-files.yml
vendored
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue