mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-22 02:07:50 +07:00
chore: zip full source and upload it to release
This commit is contained in:
parent
f284322d9b
commit
7adbb2fbb9
28
.github/workflows/release.yml
vendored
28
.github/workflows/release.yml
vendored
@ -94,6 +94,18 @@ jobs:
|
||||
run: |
|
||||
git submodule update --init --recursive
|
||||
go mod download
|
||||
go mod vendor
|
||||
|
||||
- name: Create full source ZIP archive and Signature
|
||||
if: github.event_name == 'release' && matrix.goarch == 'amd64'
|
||||
run: |
|
||||
zip -9vr dae-full-src.zip . -x .git/\*
|
||||
FILE=./dae-full-src.zip
|
||||
DGST=$FILE.dgst
|
||||
md5sum $FILE >>$DGST
|
||||
shasum -a 1 $FILE >>$DGST
|
||||
shasum -a 256 $FILE >>$DGST
|
||||
shasum -a 512 $FILE >>$DGST
|
||||
|
||||
- name: Build dae
|
||||
run: |
|
||||
@ -109,7 +121,7 @@ jobs:
|
||||
if: matrix.goarch == 'amd64'
|
||||
run: ./build/dae-$ASSET_NAME --version
|
||||
|
||||
- name: Create ZIP archive and Signature
|
||||
- name: Create binary ZIP archive and Signature
|
||||
run: |
|
||||
pushd build || exit 1
|
||||
zip -9vr ../dae-$ASSET_NAME.zip .
|
||||
@ -127,16 +139,26 @@ jobs:
|
||||
name: dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip
|
||||
path: build/*
|
||||
|
||||
- name: Upload submodule status file to GitHub release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
if: github.event_name == 'release' && matrix.goarch == 'amd64'
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file_glob: true
|
||||
file: dae-full-src.zip*
|
||||
overwrite: true
|
||||
tag: ${{ github.ref }}
|
||||
|
||||
- name: Upload files to GitHub release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
if: github.event_name == 'release'
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file_glob: true
|
||||
file: ./dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip*
|
||||
file: dae-${{ steps.get_filename.outputs.ASSET_NAME }}.zip*
|
||||
overwrite: true
|
||||
tag: ${{ github.ref }}
|
||||
|
||||
|
||||
docker:
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
|
@ -5,4 +5,4 @@
|
||||
|
||||
package control
|
||||
|
||||
//go:generate go run github.com/cilium/ebpf/cmd/bpf2go -cc "$BPF_CLANG" "$BPF_STRIP_FLAG" -cflags "$BPF_CFLAGS" -target "$BPF_TARGET" bpf kern/tproxy.c -- -I./headers
|
||||
//go:generate go run -mod=mod github.com/cilium/ebpf/cmd/bpf2go -cc "$BPF_CLANG" "$BPF_STRIP_FLAG" -cflags "$BPF_CFLAGS" -target "$BPF_TARGET" bpf kern/tproxy.c -- -I./headers
|
||||
|
Loading…
Reference in New Issue
Block a user