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 545a0d8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 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
2 changes: 1 addition & 1 deletion cmd/warp-scan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
ipscanner.WithUseIPv6(*v6),
ipscanner.WithMaxDesirableRTT(*rtt),
ipscanner.WithCidrList(warp.WarpPrefixes()),
ipscanner.WithIPQueueSize(0xffffffff),
ipscanner.WithIPQueueSize(0xffff),
)

ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
Expand Down
Binary file added warp-scan.exe
Binary file not shown.

0 comments on commit 545a0d8

Please sign in to comment.