chore: package real full src

This commit is contained in:
mzz2017 2023-04-02 00:10:37 +08:00
parent 0312afaf0d
commit 3e55f85d91
3 changed files with 7 additions and 3 deletions

View File

@ -103,8 +103,9 @@ jobs:
- name: Get project dependencies
run: |
git submodule update --init --recursive
go mod download
go mod vendor
GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw
find ./go-mod/ -maxdepth 1 ! -name "cache" ! -name "go-mod" -exec rm -rf {} \;
sed -i 's/#export GOMODCACHE=$(PWD)\/go-mod/export GOMODCACHE=$(PWD)\/go-mod/' Makefile
- name: Create full source ZIP archive and Signature
if: github.event_name == 'release' && matrix.goarch == 'amd64' && matrix.goamd64 == 'v1'
run: |

3
.gitignore vendored
View File

@ -5,4 +5,5 @@
bpf_bpfeb*.go
bpf_bpfel*.go
dae
outline.json
outline.json
go-mod/

View File

@ -23,6 +23,8 @@ else
STRIP_FLAG := -strip=$(STRIP_PATH)
endif
#export GOMODCACHE=$(PWD)/go-mod
# Get version from .git.
date=$(shell git log -1 --format="%cd" --date=short | sed s/-//g)
count=$(shell git rev-list --count HEAD)