Skip to content

Commit

Permalink
Try using composite gha workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
locallycompact committed Jan 28, 2025
1 parent f339ed1 commit b347b98
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 12 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/checkout-with-cachix.yaml
Original file line number Diff line number Diff line change
@@ -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 }}'
14 changes: 2 additions & 12 deletions .github/workflows/weeder.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit b347b98

Please sign in to comment.