From eb1b290aab5786c1deb93011eb48ac632f2f3561 Mon Sep 17 00:00:00 2001 From: Robin Ole Heinemann Date: Fri, 10 Jan 2025 02:36:31 +0100 Subject: [PATCH] ci: add magic-nix-cache --- .github/workflows/build.yml | 7 ++++--- .github/workflows/lint.yml | 5 +++-- .github/workflows/test_build.yml | 3 ++- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index dba31ddd..ac08571e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,11 +8,12 @@ jobs: runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - - name: Initialize nix environment + - name: build frontend run: nix build .#frontend - name: create frontend archive diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 47d71032..25c98b3c 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -15,9 +15,10 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - - uses: cachix/install-nix-action@v30 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Wait for nix daemon to start if: runner.os == 'macOS' diff --git a/.github/workflows/test_build.yml b/.github/workflows/test_build.yml index 5b4993cd..4f164daa 100644 --- a/.github/workflows/test_build.yml +++ b/.github/workflows/test_build.yml @@ -18,7 +18,8 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: cachix/install-nix-action@v30 + - uses: DeterminateSystems/nix-installer-action@main + - uses: DeterminateSystems/magic-nix-cache-action@main - name: Wait for nix daemon to start if: runner.os == 'macOS'