mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-11-13 14:29:52 +00:00
workflows: nix: hardcode cachix ids, build unconditionally (#5663)
GitHub does not expose environment and repository variables to PRs coming from forks implies that we've been disabling the Nix CI actions for most PRs. The `if:` also didn't make much sense, because we can always pull from cachix, and there's no point (albeit no risk either) in pushing cache for the untrusted code.
This commit is contained in:
parent
3a03541ced
commit
4cb4d8b22d
7
.github/workflows/nix-ci-aarch64.yml
vendored
7
.github/workflows/nix-ci-aarch64.yml
vendored
@ -19,7 +19,6 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nix-build-aarch64:
|
nix-build-aarch64:
|
||||||
if: ${{ vars.CACHIX_NAME != '' }}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -37,8 +36,8 @@ jobs:
|
|||||||
extra-conf: |
|
extra-conf: |
|
||||||
extra-platforms = aarch64-linux
|
extra-platforms = aarch64-linux
|
||||||
extra-system-features = nixos-test kvm
|
extra-system-features = nixos-test kvm
|
||||||
extra-substituters = https://${{ vars.CACHIX_NAME }}.cachix.org https://cuda-maintainers.cachix.org
|
extra-substituters = https://llama-cpp.cachix.org https://cuda-maintainers.cachix.org
|
||||||
extra-trusted-public-keys = ${{ vars.CACHIX_PUBLIC_KEY }} cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
|
extra-trusted-public-keys = llama-cpp.cachix.org-1:H75X+w83wUKTIPSO1KWy9ADUrzThyGs8P5tmAbkWhQc= cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
with:
|
||||||
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
|
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
|
||||||
@ -46,7 +45,7 @@ jobs:
|
|||||||
uses: cachix/cachix-action@v13
|
uses: cachix/cachix-action@v13
|
||||||
with:
|
with:
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
name: ${{ vars.CACHIX_NAME }}
|
name: llama-cpp
|
||||||
- name: Show all output paths
|
- name: Show all output paths
|
||||||
run: >
|
run: >
|
||||||
nix run github:nix-community/nix-eval-jobs
|
nix run github:nix-community/nix-eval-jobs
|
||||||
|
11
.github/workflows/nix-ci.yml
vendored
11
.github/workflows/nix-ci.yml
vendored
@ -23,8 +23,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
extra-substituters = https://${{ vars.CACHIX_NAME }}.cachix.org https://cuda-maintainers.cachix.org
|
extra-substituters = https://llama-cpp.cachix.org https://cuda-maintainers.cachix.org
|
||||||
extra-trusted-public-keys = ${{ vars.CACHIX_PUBLIC_KEY }} cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
|
extra-trusted-public-keys = llama-cpp.cachix.org-1:H75X+w83wUKTIPSO1KWy9ADUrzThyGs8P5tmAbkWhQc= cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
with:
|
||||||
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
|
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
|
||||||
@ -37,7 +37,6 @@ jobs:
|
|||||||
--flake
|
--flake
|
||||||
".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
".#packages.$(nix eval --raw --impure --expr builtins.currentSystem)"
|
||||||
nix-build:
|
nix-build:
|
||||||
if: ${{ vars.CACHIX_NAME != '' }}
|
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
@ -51,8 +50,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
extra-conf: |
|
extra-conf: |
|
||||||
extra-substituters = https://${{ vars.CACHIX_NAME }}.cachix.org https://cuda-maintainers.cachix.org
|
extra-substituters = https://llama-cpp.cachix.org https://cuda-maintainers.cachix.org
|
||||||
extra-trusted-public-keys = ${{ vars.CACHIX_PUBLIC_KEY }} cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
|
extra-trusted-public-keys = llama-cpp.cachix.org-1:H75X+w83wUKTIPSO1KWy9ADUrzThyGs8P5tmAbkWhQc= cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E=
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
- uses: DeterminateSystems/magic-nix-cache-action@v2
|
||||||
with:
|
with:
|
||||||
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
|
upstream-cache: https://${{ matrix.cachixName }}.cachix.org
|
||||||
@ -60,7 +59,7 @@ jobs:
|
|||||||
uses: cachix/cachix-action@v13
|
uses: cachix/cachix-action@v13
|
||||||
with:
|
with:
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
name: ${{ vars.CACHIX_NAME }}
|
name: llama-cpp
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >
|
run: >
|
||||||
nix run github:Mic92/nix-fast-build
|
nix run github:Mic92/nix-fast-build
|
||||||
|
Loading…
Reference in New Issue
Block a user