Skip to content

Commit feaa7e5

Browse files
committed
CI: upload go-mod-vendor.tar.gz as a backup
Signed-off-by: Akihiro Suda <[email protected]>
1 parent ea76fd3 commit feaa7e5

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
sudo apt-get install -y gcc-aarch64-linux-gnu
4848
- name: "Compile binaries"
4949
run: make artifacts-linux
50+
- name: "Make misc artifacts"
51+
run: make artifacts-misc
5052
- name: "SHA256SUMS"
5153
run: |
5254
( cd _artifacts; sha256sum *.tar.gz ) | tee /tmp/SHA256SUMS

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,5 @@ jobs:
194194
fetch-depth: 1
195195
- name: Make linux artifacts
196196
run: make artifacts-linux
197+
- name: Make misc artifacts
198+
run: make artifacts-misc

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ lint:
8686

8787
.PHONY: clean
8888
clean:
89-
rm -rf _output
89+
rm -rf _output vendor
9090

9191
.PHONY: artifacts-darwin
9292
artifacts-darwin:
@@ -103,3 +103,9 @@ artifacts-linux:
103103
$(TAR) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED)-Linux-x86_64.tar.gz ./
104104
GOOS=linux GOARCH=arm64 CC=aarch64-linux-gnu-gcc make clean binaries
105105
$(TAR) -C _output/ -czvf _artifacts/lima-$(VERSION_TRIMMED)-Linux-aarch64.tar.gz ./
106+
107+
.PHONY: artifacts-misc
108+
artifacts-misc:
109+
mkdir -p _artifacts
110+
go mod vendor
111+
$(TAR) -czf _artifacts/lima-$(VERSION_TRIMMED)-go-mod-vendor.tar.gz go.mod go.sum vendor

0 commit comments

Comments
 (0)