diff --git a/.github/workflows/checkout-with-cachix.yaml b/.github/workflows/checkout-with-cachix.yaml new file mode 100644 index 000000000000..a2c3b7e74053 --- /dev/null +++ b/.github/workflows/checkout-with-cachix.yaml @@ -0,0 +1,18 @@ +name: Checkout With Cachix +description: Checkout a repository and also set up nix + +runs: + using: composite + steps: + - name: ❄ Prepare nix + uses: cachix/install-nix-action@v30 + with: + extra_nix_config: | + accept-flake-config = true + log-lines = 1000 + + - name: ❄ Cachix cache of nix derivations + uses: cachix/cachix-action@v15 + with: + name: cardano-scaling + authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' diff --git a/.github/workflows/weeder.yaml b/.github/workflows/weeder.yaml index 672c9983634d..a5d430db12c0 100644 --- a/.github/workflows/weeder.yaml +++ b/.github/workflows/weeder.yaml @@ -13,18 +13,8 @@ jobs: - name: 📥 Checkout repository uses: actions/checkout@v4 - - name: ❄ Prepare nix - uses: cachix/install-nix-action@v30 - with: - extra_nix_config: | - accept-flake-config = true - log-lines = 1000 - - - name: ❄ Cachix cache of nix derivations - uses: cachix/cachix-action@v15 - with: - name: cardano-scaling - authToken: '${{ secrets.CACHIX_CARDANO_SCALING_AUTH_TOKEN }}' + - name: ❄ Checkout With Cachix + uses: ./.github/workflows/checkout-with-cachix.yaml - name: 📐 Check weeder run: |