fix: issues
This commit is contained in:
20
.github/workflows/release.yml
vendored
20
.github/workflows/release.yml
vendored
@@ -14,11 +14,11 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
job:
|
job:
|
||||||
- { os: "ubuntu-latest", target: "android"}
|
#- { os: "ubuntu-latest", target: "android"}
|
||||||
- { os: "ubuntu-latest", target: "linux-386", aarch: 'x86'}
|
- { os: "ubuntu-latest", target: "linux-386", aarch: 'x86'}
|
||||||
- { os: "ubuntu-latest", target: "linux-amd64", aarch: 'x64'}
|
#- { os: "ubuntu-latest", target: "linux-amd64", aarch: 'x64'}
|
||||||
- { os: "ubuntu-latest", target: "windows-386", aarch: 'x86'}
|
#- { os: "ubuntu-latest", target: "windows-386", aarch: 'x86'}
|
||||||
- { os: "ubuntu-latest", target: "windows-amd64", aarch: 'x64' }
|
#- { os: "ubuntu-latest", target: "windows-amd64", aarch: 'x64' }
|
||||||
- { os: "macos-11", target: "macos-universal" }
|
- { os: "macos-11", target: "macos-universal" }
|
||||||
runs-on: ${{ matrix.job.os }}
|
runs-on: ${{ matrix.job.os }}
|
||||||
steps:
|
steps:
|
||||||
@@ -27,6 +27,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set up GCC
|
||||||
|
if: startsWith(matrix.job.target,'linux')
|
||||||
|
uses: egor-tensin/setup-gcc@v1
|
||||||
|
with:
|
||||||
|
version: latest
|
||||||
|
platform: ${{ matrix.job.aarch }}
|
||||||
|
|
||||||
|
- name: gcc
|
||||||
|
if: startsWith(matrix.job.target,'linux')
|
||||||
|
run: |
|
||||||
|
sudo apt-get install --reinstall libc6-dev
|
||||||
|
|
||||||
- name: Setup Go
|
- name: Setup Go
|
||||||
uses: actions/setup-go@v4
|
uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
5
Makefile
5
Makefile
@@ -30,10 +30,9 @@ macos-amd64:
|
|||||||
env GOOS=darwin GOARCH=amd64 CGO_CFLAGS="-mmacosx-version-min=10.11" CGO_LDFLAGS="-mmacosx-version-min=10.11" CGO_ENABLED=1 go build -trimpath -tags with_gvisor,with_lwip -buildmode=c-shared -o $(BINDIR)/$(NAME)-$@.dylib ./custom
|
env GOOS=darwin GOARCH=amd64 CGO_CFLAGS="-mmacosx-version-min=10.11" CGO_LDFLAGS="-mmacosx-version-min=10.11" CGO_ENABLED=1 go build -trimpath -tags with_gvisor,with_lwip -buildmode=c-shared -o $(BINDIR)/$(NAME)-$@.dylib ./custom
|
||||||
macos-arm64:
|
macos-arm64:
|
||||||
env GOOS=darwin GOARCH=arm64 CGO_CFLAGS="-mmacosx-version-min=10.11" CGO_LDFLAGS="-mmacosx-version-min=10.11" CGO_ENABLED=1 go build -trimpath -tags with_gvisor,with_lwip -buildmode=c-shared -o $(BINDIR)/$(NAME)-$@.dylib ./custom
|
env GOOS=darwin GOARCH=arm64 CGO_CFLAGS="-mmacosx-version-min=10.11" CGO_LDFLAGS="-mmacosx-version-min=10.11" CGO_ENABLED=1 go build -trimpath -tags with_gvisor,with_lwip -buildmode=c-shared -o $(BINDIR)/$(NAME)-$@.dylib ./custom
|
||||||
macos-combine:
|
|
||||||
lipo -create $(BINDIR)/$(NAME)-macos-amd64.dylib $(BINDIR)/$(NAME)-macos-arm64.dylib -output $(BINDIR)/$(NAME)-$@.dylib
|
|
||||||
|
|
||||||
macos-universal: macos-amd64 macos-arm64 macos-combine
|
macos-universal: macos-amd64 macos-arm64
|
||||||
|
lipo -create $(BINDIR)/$(NAME)-macos-amd64.dylib $(BINDIR)/$(NAME)-macos-arm64.dylib -output $(BINDIR)/$(NAME)-$@.dylib
|
||||||
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
|
|||||||
Reference in New Issue
Block a user