Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xishang0128 committed Feb 24, 2024
1 parent 8e7f79b commit 6c44b6d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

# - { goos: linux, goarch: '386', output: '386' }
# - { goos: linux, goarch: amd64, output: amd64 }
- { goos: linux, goarch: amd64, goamd64: v3, output: amd64_v3, cgo: '0' }
- { goos: linux, goarch: amd64, goamd64: v3, output: amd64_v3 }
# - { goos: linux, goarch: arm64, output: arm64 }
# - { goos: linux, goarch: arm, goarm: '7', output: armv7 }
# - { goos: linux, goarch: mips, mips: hardfloat, output: mips-hardfloat }
Expand All @@ -51,10 +51,10 @@ jobs:
# - { goos: freebsd, goarch: amd64, goamd64: v3, output: amd64_v3 }
# - { goos: freebsd, goarch: arm64, output: arm64 }

# - { goos: android, goarch: '386', ndk: i686-linux-android34, output: '386', cgo: '1'}
# - { goos: android, goarch: amd64, ndk: x86_64-linux-android34, output: amd64, cgo: '1' }
# - { goos: android, goarch: arm, ndk: armv7a-linux-androideabi34, output: armv7, cgo: '1' }
# - { goos: android, goarch: arm64, ndk: aarch64-linux-android34, output: arm64-v8, cgo: '1' }
# - { goos: android, goarch: '386', ndk: i686-linux-android34, output: '386' }
# - { goos: android, goarch: amd64, ndk: x86_64-linux-android34, output: amd64 }
# - { goos: android, goarch: arm, ndk: armv7a-linux-androideabi34, output: armv7 }
# - { goos: android, goarch: arm64, ndk: aarch64-linux-android34, output: arm64-v8 }
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -86,6 +86,7 @@ jobs:
if: ${{ matrix.jobs.goos == 'android' }}
run: |
echo "CC=${{steps.setup-ndk.outputs.ndk-path}}/toolchains/llvm/prebuilt/linux-x86_64/bin/${{matrix.jobs.ndk}}-clang" >> $GITHUB_ENV
echo "CGO_ENABLED=1" >> $GITHUB_ENV
- name: build core
env:
Expand All @@ -94,7 +95,6 @@ jobs:
GOAMD64: ${{matrix.jobs.goamd64}}
GOARM: ${{matrix.jobs.arm}}
GOMIPS: ${{matrix.jobs.mips}}
CGO_ENABLED: ${{matrix.jobs.cgo}}
run: |
go build -v -tags "with_gvisor" -trimpath -ldflags "-extldflags --static -X 'github.com/metacubex/mihomo/constant.Version=${VERSION}' -X 'github.com/metacubex/mihomo/constant.BuildTime=${BUILDTIME}' -w -s -buildid="
if [ "${{matrix.jobs.goos}}" = "windows" ]; then
Expand Down

0 comments on commit 6c44b6d

Please sign in to comment.