@@ -23,14 +23,15 @@ jobs:
23
23
- name : Install Dependences
24
24
run : |
25
25
brew install libpcap upx
26
- chmod +x .github/workflows/upx.sh
26
+ # git submodule update --init --recursive --remote
27
27
- name : Run GoReleaser
28
28
uses : goreleaser/goreleaser-action@v2
29
29
with :
30
30
version : latest
31
31
args : release -f .github/build/mac.yml --clean
32
32
env :
33
33
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34
+ # https://github.com/marketplace/actions/run-on-architecture#supported-platforms
34
35
build-linux :
35
36
runs-on : ubuntu-latest
36
37
steps :
@@ -39,15 +40,16 @@ jobs:
39
40
with :
40
41
submodules : recursive
41
42
fetch-depth : 0
43
+ - name : Checkout submodules
44
+ run : git submodule update --init --recursive
42
45
- name : Set up Go
43
46
uses : actions/setup-go@v2
44
47
with :
45
48
go-version : 1.21.3
46
- - name : Install Dependencies
49
+ - name : Install Dependences
47
50
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
51
53
- name : Run GoReleaser
52
54
uses : goreleaser/goreleaser-action@v2
53
55
with :
66
68
fetch-depth : 0
67
69
- name : Checkout submodules
68
70
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"
69
78
- name : Set up Go
70
79
uses : actions/setup-go@v2
71
80
with :
0 commit comments