Skip to content

Commit

Permalink
ci: unzip
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisSchinnerl committed Jan 30, 2024
1 parent 82341d9 commit 7c57784
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
- name: Download release artifacts from workflow
uses: dawidd6/action-download-artifact@v3
with:
name: ${{ env.PROJECT }}_linux_.+
name: ${{ env.PROJECT }}
name_is_regex: true
path: artifacts
repo: SiaFoundation/${{ env.PROJECT }}
run_id: ${{ env.WORKFLOW_ID }}
workflow_conclusion: success
Expand All @@ -70,7 +71,8 @@ jobs:
mkdir -p ${BUILD_NAME}/usr/bin
# Copy the ${{ env.PROJECT }} binary
cp ${{ env.PROJECT }}/${{ env.PROJECT }}_linux_${arch} ${BUILD_NAME}/usr/bin/${{ env.PROJECT }}
unzip ./artifacts/${{ env.PROJECT }}_linux_${arch}.zip -d ./artifacts/${arch}/
cp ./artifacts/${arch}/${{ env.PROJECT }} ${BUILD_NAME}/usr/bin/${{ env.PROJECT }}
GOOS=linux GOARCH=${arch} go build -tags='netgo' -o ${BUILD_NAME}/usr/bin/${{ env.PROJECT }} -a -ldflags='-s -w' ./cmd/${{ env.PROJECT }}
# Create the control file
Expand Down

0 comments on commit 7c57784

Please sign in to comment.