Skip to content

Commit

Permalink
Test the sanoid-portable binary after it's built
Browse files Browse the repository at this point in the history
  • Loading branch information
decoyjoe committed Nov 30, 2024
1 parent 970019a commit eeff2f8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
outputs:
artifact_name: ${{ steps.set_artifact_name.outputs.artifact_name }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -20,3 +22,34 @@ jobs:
sudo sh -c "echo ':APE:M::MZqFpD::/bin/sh:' >/proc/sys/fs/binfmt_misc/register"
./build.sh
- name: Set artifact name
id: set_artifact_name
run: echo "artifact_name=sanoid-portable.${{ github.sha }}.${{ github.run_id }}" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@v4
with:
name: ${{ steps.set_artifact_name.outputs.artifact_name }}
path: output/sanoid-portable
if-no-files-found: error
retention-days: 5

test:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download sanoid-portable artifact
uses: actions/download-artifact@v4
with:
name: ${{ needs.build.outputs.artifact_name }}
path: sanoid-portable
- name: Test sanoid-portable
run: |
./sanoid-portable -h
ln -s sanoid-portable sanoid
./sanoid -h
ln -s sanoid-portable syncoid
./syncoid -h
ln -s sanoid-portable findoid
./findoid -h

0 comments on commit eeff2f8

Please sign in to comment.