mirror of
https://github.com/criyle/go-judge.git
synced 2025-09-26 22:39:12 +08:00
build: remove dynamic library on macOS
This commit is contained in:
parent
ac732af3c9
commit
a8d50dba48
26
.github/workflows/build.yml
vendored
26
.github/workflows/build.yml
vendored
@ -159,13 +159,13 @@ jobs:
|
||||
run: |
|
||||
go build -tags grpcnotrace,nomsgpack -o go-judge ./cmd/go-judge
|
||||
go build -o go-judge-shell ./cmd/go-judge-shell
|
||||
- name: Build shared object on macOS
|
||||
if: ${{ matrix.os == 'macos-latest' && matrix.GOARCH == 'amd64' }}
|
||||
env:
|
||||
GOARCH: ${{ matrix.GOARCH }}
|
||||
CGO_ENABLE: 1
|
||||
run: |
|
||||
go build -buildmode=c-shared -o go-judge.dylib ./cmd/go-judge-ffi
|
||||
# - name: Build shared object on macOS
|
||||
# if: ${{ matrix.os == 'macos-latest' && matrix.GOARCH == 'amd64' }}
|
||||
# env:
|
||||
# GOARCH: ${{ matrix.GOARCH }}
|
||||
# CGO_ENABLE: 1
|
||||
# run: |
|
||||
# go build -buildmode=c-shared -o go-judge.dylib ./cmd/go-judge-ffi
|
||||
- name: Upload go-judge on macOS
|
||||
if: ${{ matrix.os == 'macos-latest' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
@ -178,9 +178,9 @@ jobs:
|
||||
with:
|
||||
name: go-judge-shell-MacOS-${{ matrix.GOARCH }}
|
||||
path: go-judge-shell
|
||||
- name: Upload go-judge.dylib on macOS
|
||||
if: ${{ matrix.os == 'macos-latest' && matrix.GOARCH == 'amd64' }}
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: go-judge-${{ matrix.GOARCH }}.dylib
|
||||
path: go-judge.dylib
|
||||
# - name: Upload go-judge.dylib on macOS
|
||||
# if: ${{ matrix.os == 'macos-latest' && matrix.GOARCH == 'amd64' }}
|
||||
# uses: actions/upload-artifact@v4
|
||||
# with:
|
||||
# name: go-judge-${{ matrix.GOARCH }}.dylib
|
||||
# path: go-judge.dylib
|
||||
|
Loading…
Reference in New Issue
Block a user