Skip to content

Commit 4897f9c

Browse files
committed
💚 测试升级ubuntu版本
1 parent ec2a2bb commit 4897f9c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build-rotateproxy:
10-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-20.04
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
@@ -22,7 +22,7 @@ jobs:
2222
- name: Build RotateProxy
2323
run: |
2424
# download macos sysroot
25-
git clone --depth=1 https://github.com/hexops/sdk-macos-11.3.git "$HOME/macos-SDK"
25+
git clone --depth=1 https://github.com/hexops/sdk-macos-12.0.git "$HOME/macos-SDK"
2626
# create zig script
2727
mkdir -p "$HOME/.bin"
2828
export PATH=$PATH:"$HOME/.bin"
@@ -62,7 +62,7 @@ jobs:
6262
fi
6363
cat "$HOME/.bin/zxx"
6464
cat "$HOME/.bin/zcc"
65-
CGO_ENABLED=1 GOOS="${goos}" GOARCH="${goarch}" CC="zcc" CXX="zxx" go build -o "../../build/rotateproxy-${goos}-${goarch}${ext}" -trimpath -ldflags="-linkmode=external -extldflags=-static -s -w"
65+
CGO_ENABLED=1 GOOS="${goos}" GOARCH="${goarch}" CC="zcc" CXX="zxx" go build -x -o "../../build/rotateproxy-${goos}-${goarch}${ext}" -trimpath -ldflags="-linkmode=external -extldflags=-static -s -w"
6666
done
6767
- name: Run GoReleaser
6868
uses: goreleaser/goreleaser-action@v2

0 commit comments

Comments
 (0)