Skip to content

Commit

Permalink
actions: add warp-scan
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Pashmfouroush <[email protected]>
  • Loading branch information
markpash committed May 28, 2024
1 parent eb960ac commit b414fd8
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/go-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,18 @@ jobs:

- name: Build warp-plus
run: |
go build -v -o build_assets/ -trimpath -ldflags "-s -w -buildid= -X main.version=${{ github.ref }}" ./cmd/warp-plus
go build -v -o warp-plus_${{ env.ASSET_NAME }}/ -trimpath -ldflags "-s -w -buildid= -X main.version=${{ github.ref }}" ./cmd/warp-plus
go build -v -o warp-scan_${{ env.ASSET_NAME }}/ -trimpath -ldflags "-s -w -buildid= -X main.version=${{ github.ref }}" ./cmd/warp-scan
- name: Copy README.md & LICENSE
run: |
cp ${GITHUB_WORKSPACE}/README.md ./build_assets/README.md
cp ${GITHUB_WORKSPACE}/LICENSE ./build_assets/LICENSE
cp ${GITHUB_WORKSPACE}/README.md ./warp-plus_${{ env.ASSET_NAME }}/README.md
cp ${GITHUB_WORKSPACE}/LICENSE ./warp-plus_${{ env.ASSET_NAME }}/LICENSE
- name: Create ZIP archive
shell: bash
run: |
pushd ./build_assets || exit 1
pushd ./warp-plus_${{ env.ASSET_NAME }} || exit 1
touch -mt $(date +%Y01010000) *
zip -9vr ../warp-plus_${{ env.ASSET_NAME }}.zip .
popd || exit 1
Expand All @@ -91,17 +92,20 @@ jobs:
openssl dgst -$METHOD $FILE | sed 's/([^)]*)//g' >>$DGST
done
- name: Change the name
run: |
mv ./build_assets ./warp-plus_${{ env.ASSET_NAME }}
- name: Upload files to Artifacts
- name: Upload warp-plus files to Artifacts
uses: actions/upload-artifact@v4
with:
name: warp-plus_${{ env.ASSET_NAME }}_${{ env.REF }}
path: |
./warp-plus_${{ env.ASSET_NAME }}/*
- name: Upload warp-scan files to Artifacts
uses: actions/upload-artifact@v4
with:
name: warp-scan_${{ env.ASSET_NAME }}_${{ env.REF }}
path: |
./warp-scan_${{ env.ASSET_NAME }}/*
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
Expand Down

0 comments on commit b414fd8

Please sign in to comment.