Skip to content

Commit 07ca6b4

Browse files
committed
up 2023-10-30
1 parent c10eba0 commit 07ca6b4

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/build.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,15 @@ jobs:
2323
- name: Install Dependences
2424
run: |
2525
brew install libpcap upx
26-
chmod +x .github/workflows/upx.sh
26+
# git submodule update --init --recursive --remote
2727
- name: Run GoReleaser
2828
uses: goreleaser/goreleaser-action@v2
2929
with:
3030
version: latest
3131
args: release -f .github/build/mac.yml --clean
3232
env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
# https://github.com/marketplace/actions/run-on-architecture#supported-platforms
3435
build-linux:
3536
runs-on: ubuntu-latest
3637
steps:
@@ -39,15 +40,16 @@ jobs:
3940
with:
4041
submodules: recursive
4142
fetch-depth: 0
43+
- name: Checkout submodules
44+
run: git submodule update --init --recursive
4245
- name: Set up Go
4346
uses: actions/setup-go@v2
4447
with:
4548
go-version: 1.21.3
46-
- name: Install Dependencies
49+
- name: Install Dependences
4750
run: |
48-
sudo apt-get update
49-
sudo apt install -yy libpcap-dev upx
50-
chmod +x .github/workflows/upx.sh
51+
sudo apt install -yy --fix-missing libpcap-dev upx
52+
# git submodule update --init --recursive --remote
5153
- name: Run GoReleaser
5254
uses: goreleaser/goreleaser-action@v2
5355
with:
@@ -66,6 +68,13 @@ jobs:
6668
fetch-depth: 0
6769
- name: Checkout submodules
6870
run: git submodule update --init --recursive
71+
# - name: Install upx
72+
# run: |
73+
# mkdir upx
74+
# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
75+
# Invoke-WebRequest "https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win32.zip" -OutFile "upx.zip"
76+
# Expand-Archive upx.zip -DestinationPath upx
77+
# setx PATH "$env:PATH;$(Get-Location)/upx/x86_64-w64-mingw32"
6978
- name: Set up Go
7079
uses: actions/setup-go@v2
7180
with:

0 commit comments

Comments
 (0)