diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dadfe37..1a47f35 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: diff --git a/control/control.go b/control/control.go index d462623..d4a9841 100644 --- a/control/control.go +++ b/control/control.go @@ -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