Skip to content

Commit

Permalink
workflow: use cachix action again
Browse files Browse the repository at this point in the history
  • Loading branch information
NyCodeGHG committed Dec 12, 2024
1 parent e2079e5 commit e219d5b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,32 +20,30 @@ jobs:
- packages.x86_64-linux.wgsl-analyzer
- packages.x86_64-linux.yt-dlp
- nixosConfigurations.marie-desktop.config.system.build.kernel
- nixosConfigurations.marie-desktop.config.system.build.initialRamdisk
name: Build package ${{ matrix.package }}
runs-on: ubuntu-latest
needs: pre_ci
if: needs.pre_ci.outputs.continue
steps:
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@ba0dd844c9180cbf77aa72a116d6fbc515d0e87b # v27
- uses: cachix/cachix-action@@ad2ddac53f961de1989924296a1f236fcfbaa4fc # v15
with:
extra_nix_config: |
trusted-public-keys = uwumarie.cachix.org-1:H6nX8e82pu2GQ8CGU3j1qHTG7QMYzZ15oSBh26XhtVo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
substituters = https://uwumarie.cachix.org https://cache.nixos.org/
name: uwumarie
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Cleanup disk space
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
- name: Build ${{ matrix.package }}
env:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
run: |
nix shell --inputs-from . \
nixpkgs#nix-fast-build \
-c \
nix-fast-build \
--skip-cached \
--no-nom \
--cachix-cache uwumarie \
--flake '.#${{ matrix.package }}'

0 comments on commit e219d5b

Please sign in to comment.