Skip to content

Commit

Permalink
up 2023-12-10
Browse files Browse the repository at this point in the history
  • Loading branch information
hktalent committed Dec 10, 2023
1 parent e6c4622 commit 50d2a6d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 26 deletions.
51 changes: 26 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,24 @@ jobs:
runs-on: macos-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
run: |
git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21.4
- name: Install Dependences
run: |
brew install libpcap upx
brew install libpcap
# go mod vendor
# git submodule update --init --recursive --remote
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release -f .github/build/mac.yml --clean
Expand All @@ -36,22 +38,27 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
run: |
git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21.4
- name: Install Dependences
run: |
sudo apt install -yy --fix-missing libpcap-dev upx
sudo apt install -yy libpcap-dev
#go mod vendor
env:
GOENABLE: 1
# CGO_LDFLAGS: "-Wl,-static -L/usr/lib/x86_64-linux-gnu/libpcap.a -lpcap -Wl,-Bdynamic"
# git submodule update --init --recursive --remote
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release -f .github/build/linux.yml --clean
Expand All @@ -62,27 +69,21 @@ jobs:
runs-on: windows-latest
steps:
- name: Code checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Checkout submodules
run: git submodule update --init --recursive
# - name: Install upx
# run: |
# mkdir upx
# [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
# Invoke-WebRequest "https://github.com/upx/upx/releases/download/v3.96/upx-3.96-win32.zip" -OutFile "upx.zip"
# Expand-Archive upx.zip -DestinationPath upx
# setx PATH "$env:PATH;$(Get-Location)/upx/x86_64-w64-mingw32"
run: |
git submodule update --init --recursive
- name: Set up Go
uses: actions/setup-go@v2
uses: actions/setup-go@v4
with:
go-version: 1.19
go-version: 1.21.4
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release -f .github/build/windows.yml --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/hktalent/wget-go

go 1.19
go 1.21.4

require (
github.com/cheggaaa/pb v1.0.29
Expand Down

0 comments on commit 50d2a6d

Please sign in to comment.