Skip to content

Commit 40d6c24

Browse files
committed
up build*.xml 2023-10-30
1 parent a7b02fc commit 40d6c24

File tree

5 files changed

+35
-11
lines changed

5 files changed

+35
-11
lines changed

.github/build/linux.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ builds:
2424
# - s390x
2525
# - arm
2626
# - arm64
27+
extra_files:
28+
- from: ../config
29+
to: config
2730
archives:
28-
- format: zip
31+
- format: zip
32+
files:
33+
- LICENSE*
34+
- README*
35+
- config/**/*
2936

3037
checksum:
3138
name_template: "{{ .ProjectName }}-linux-checksums.txt"

.github/build/linuxarm64.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,15 @@ builds:
1414
- linux
1515
goarch:
1616
- arm64
17+
extra_files:
18+
- from: ../config
19+
to: config
1720
archives:
18-
- format: zip
21+
- format: zip
22+
files:
23+
- LICENSE*
24+
- README*
25+
- config/**/*
1926

2027
checksum:
2128
name_template: "{{ .ProjectName }}-linux-checksums.txt"

.github/build/mac.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ builds:
1515
goarch:
1616
- amd64
1717
- arm64
18+
extra_files:
19+
- from: ../config
20+
to: config
1821

1922
archives:
20-
- format: zip
21-
replacements:
22-
darwin: macOS
23-
23+
- format: zip
24+
files:
25+
- LICENSE*
26+
- README*
27+
- config/**/*
2428
checksum:
2529
name_template: "{{ .ProjectName }}-mac-checksums.txt"

.github/build/windows.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,15 @@ builds:
1717
goarch:
1818
- amd64
1919
# - arm64
20-
20+
extra_files:
21+
- from: ../config
22+
to: config
2123
archives:
22-
- format: zip
24+
- format: zip
25+
files:
26+
- LICENSE*
27+
- README*
28+
- config/**/*
2329

2430
checksum:
2531
name_template: "{{ .ProjectName }}-windows-checksums.txt"

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
with:
4242
submodules: recursive
4343
fetch-depth: 0
44-
- name: Checkout submodules
45-
run: git submodule update --init --recursive
44+
# - name: Checkout submodules
45+
# run: git submodule update --init --recursive
4646
# - name: Install cross-compiler for linux/arm64
4747
# run: sudo apt-get -y install gcc-aarch64-linux-gnu
4848
- name: Set up Go
@@ -55,7 +55,7 @@ jobs:
5555
# sudo apt-get -y install gcc-mingw-w64-x86-64
5656
# sudo apt-get -y install gcc-arm-linux-gnueabihf libc6-dev-armhf-cross
5757
# sudo apt-get -y install gcc-aarch64-linux-gnu libc6-dev-arm64-cross
58-
sudo apt install -yy libpcap-dev
58+
sudo apt install -yy libpcap-dev upx
5959
# sudo apt install upx gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
6060
chmod +x .github/workflows/upx.sh
6161
# git submodule update --init --recursive --remote

0 commit comments

Comments
 (0)