Skip to content

Commit

Permalink
Remove archive name env var
Browse files Browse the repository at this point in the history
  • Loading branch information
lucperkins committed May 22, 2024
1 parent 63ea689 commit 673a1e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jobs:
contents: "read"
env:
ARTIFACT_KEY: flake-checker-${{ matrix.systems.system }}
ARCHIVE_NAME: flake-checker
strategy:
matrix:
systems:
Expand Down Expand Up @@ -47,12 +46,12 @@ jobs:
- name: Build package for ${{ matrix.systems.nix-system }}
run: |
nix build -L ".#packages.${{ matrix.systems.nix-system }}.default"
cp ./result/bin/flake-checker "${{ env.ARCHIVE_NAME }}"
cp ./result/bin/flake-checker flake-checker
- name: Upload flake-checker executable for ${{ matrix.systems.system }}
uses: actions/[email protected]
with:
# Artifact name
name: ${{ env.ARTIFACT_KEY }}
path: ${{ env.ARCHIVE_NAME }}
path: flake-checker
retention-days: 1
7 changes: 3 additions & 4 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ jobs:
id-token: write
env:
ARTIFACT_KEY: flake-checker-${{ matrix.systems.system }}
ARCHIVE_NAME: flake-checker
strategy:
matrix:
systems:
Expand All @@ -111,11 +110,11 @@ jobs:

- name: chmod flake-checker executable on ${{ matrix.systems.system }}
run: |
chmod +x "${{ env.ARTIFACT_KEY }}/${{ env.ARCHIVE_NAME }}"
chmod +x "${{ env.ARTIFACT_KEY }}/flake-checker"
file "${{ env.ARTIFACT_KEY }}/${{ env.ARCHIVE_NAME }}"
file "${{ env.ARTIFACT_KEY }}/flake-checker"
- name: Test flake-checker-action@source-binary on ${{ matrix.systems.runner }}
uses: DeterminateSystems/flake-checker-action@source-binary
with:
source-binary: ${{ env.ARTIFACT_KEY }}/${{ env.ARCHIVE_NAME }}
source-binary: ${{ env.ARTIFACT_KEY }}/flake-checker

0 comments on commit 673a1e4

Please sign in to comment.