From afff3093f4598aa9882570b8e8169d805d09e2b3 Mon Sep 17 00:00:00 2001 From: Awen Lelu Date: Wed, 12 Nov 2025 11:00:56 +0100 Subject: [PATCH] add DeterministSystem cache --- .gitea/workflows/analysis.yml | 2 ++ .gitea/workflows/deploy.yml | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/analysis.yml b/.gitea/workflows/analysis.yml index 659dce0..f68d180 100644 --- a/.gitea/workflows/analysis.yml +++ b/.gitea/workflows/analysis.yml @@ -8,5 +8,7 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v5 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Check Nix flake inputs uses: http://github.com/DeterminateSystems/flake-checker-action@main diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 3b66f28..38444bd 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -12,16 +12,13 @@ jobs: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v5 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Install SSH key uses: shimataro/ssh-key-action@v2 with: key: ${{ secrets.SSH_KEY }} known_hosts: ${{ secrets.KNOWN_HOSTS }} - - name: Install dependencies for Nix setup action - run: | - apt update -y - apt install sudo -y - - uses: cachix/install-nix-action@v31 with: install_url: https://releases.nixos.org/nix/nix-2.28.5/install - uses: http://github.com/cachix/cachix-action@v16