Skip to content

Commit

Permalink
build: remove dynamic library on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
criyle committed May 4, 2024
1 parent ac732af commit a8d50db
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit a8d50db

Please sign in to comment.