Skip to content

Commit

Permalink
Merge pull request #51 from nixbuild/update-actions
Browse files Browse the repository at this point in the history
ci: Update actions
  • Loading branch information
rickynils authored Nov 5, 2024
2 parents 1a459e0 + 1e71a36 commit 4ed3e0f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 18 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
os: [ubuntu-22.04, macos-13, macos-14]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: cachix/install-nix-action@v30
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v15
with:
name: nixbuild
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
Expand All @@ -29,9 +29,9 @@ jobs:
run: |
nix build .#nix-archives
echo "result=$(readlink result)" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: nix-archives-${{ runner.os }}
name: nix-archives-${{ runner.os }}-${{ runner.arch }}
path: ${{ steps.build-nix-archives.outputs.result }}/

test:
Expand All @@ -54,11 +54,11 @@ jobs:
- 2.3.18
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
id: nix-archives
with:
name: nix-archives-${{ runner.os }}
name: nix-archives-${{ runner.os }}-${{ runner.arch }}
- uses: ./
with:
nix_archives_url: file://${{steps.nix-archives.outputs.download-path}}
Expand Down Expand Up @@ -92,17 +92,17 @@ jobs:
- 2.3.18
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
id: nix-archives
with:
name: nix-archives-${{ runner.os }}
name: nix-archives-${{ runner.os }}-${{ runner.arch }}
- uses: ./
with:
nix_archives_url: file://${{steps.nix-archives.outputs.download-path}}
nix_version: ${{ matrix.nix_version }}
nix_conf: ${{ matrix.nix_conf }}
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v15
with:
name: nixbuild
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
Expand All @@ -127,20 +127,24 @@ jobs:
- test-cachix
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: nix-archives-Linux
name: nix-archives-Linux-X64
path: /tmp/archives
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: nix-archives-macOS
name: nix-archives-macOS-X64
path: /tmp/archives
- uses: actions/download-artifact@v4
with:
name: nix-archives-macOS-ARM64
path: /tmp/archives
- uses: ./
with:
nix_archives_url: file:///tmp/archives
nix_version: 2.24.9
- uses: cachix/cachix-action@v12
- uses: cachix/cachix-action@v15
with:
name: nixbuild
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
flakes-simple:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: nixbuild/nix-quick-install-action@v28
- name: nix build
run: nix build ./examples/flakes-simple
Expand Down

0 comments on commit 4ed3e0f

Please sign in to comment.