nix: Add job names and garnix substitutor (#31625)
This should result in some additional cache hits as I personally use garnix. Also added `-v` cachix arg to try to figure out why CI jobs aren't pushing any paths. Right now they just show ["Pushing is disabled."](https://github.com/zed-industries/zed/actions/runs/15293723678/job/43018512167#step:13:3) but I'm not sure if that's due to the `pushFilter` or misconfigured secrets. Release Notes: - N/A
This commit is contained in:
parent
1035c6aab5
commit
0e9f6986cf
4 changed files with 8 additions and 1 deletions
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
|
@ -714,6 +714,7 @@ jobs:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
nix-build:
|
nix-build:
|
||||||
|
name: Build with Nix
|
||||||
uses: ./.github/workflows/nix.yml
|
uses: ./.github/workflows/nix.yml
|
||||||
if: github.repository_owner == 'zed-industries' && contains(github.event.pull_request.labels.*.name, 'run-nix')
|
if: github.repository_owner == 'zed-industries' && contains(github.event.pull_request.labels.*.name, 'run-nix')
|
||||||
with:
|
with:
|
||||||
|
|
1
.github/workflows/nix.yml
vendored
1
.github/workflows/nix.yml
vendored
|
@ -56,6 +56,7 @@ jobs:
|
||||||
name: zed
|
name: zed
|
||||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||||
pushFilter: "${{ inputs.cachix-filter }}"
|
pushFilter: "${{ inputs.cachix-filter }}"
|
||||||
|
cachixArgs: '-v'
|
||||||
|
|
||||||
- run: nix build .#${{ inputs.flake-output }} -L --accept-flake-config
|
- run: nix build .#${{ inputs.flake-output }} -L --accept-flake-config
|
||||||
|
|
||||||
|
|
1
.github/workflows/release_nightly.yml
vendored
1
.github/workflows/release_nightly.yml
vendored
|
@ -168,6 +168,7 @@ jobs:
|
||||||
run: script/upload-nightly linux-targz
|
run: script/upload-nightly linux-targz
|
||||||
|
|
||||||
bundle-nix:
|
bundle-nix:
|
||||||
|
name: Build and cache Nix package
|
||||||
needs: tests
|
needs: tests
|
||||||
uses: ./.github/workflows/nix.yml
|
uses: ./.github/workflows/nix.yml
|
||||||
|
|
||||||
|
|
|
@ -54,9 +54,13 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
nixConfig = {
|
nixConfig = {
|
||||||
extra-substituters = [ "https://zed.cachix.org" ];
|
extra-substituters = [
|
||||||
|
"https://zed.cachix.org"
|
||||||
|
"https://cache.garnix.io"
|
||||||
|
];
|
||||||
extra-trusted-public-keys = [
|
extra-trusted-public-keys = [
|
||||||
"zed.cachix.org-1:/pHQ6dpMsAZk2DiP4WCL0p9YDNKWj2Q5FL20bNmw1cU="
|
"zed.cachix.org-1:/pHQ6dpMsAZk2DiP4WCL0p9YDNKWj2Q5FL20bNmw1cU="
|
||||||
|
"cache.garnix.io:CTFPyKSLcx5RMJKfLo5EEPUObbA78b0YQ2DTCJXqr9g="
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue