fix darwin build

This commit is contained in:
Yasuhiro Matsumoto
2026-01-17 02:47:34 +09:00
committed by fiatjaf_
parent 00fbda9af7
commit acd6227dd0

View File

@@ -55,18 +55,27 @@ jobs:
goarch: [amd64, arm64] goarch: [amd64, arm64]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 'stable'
- name: Install macFUSE - name: Install macFUSE
run: brew install --cask macfuse run: brew install --cask macfuse
- uses: wangyoucao577/go-release-action@v1.40 - name: Build binary
env:
GOOS: darwin
GOARCH: ${{ matrix.goarch }}
run: |
go build -ldflags "-X main.version=${{ github.ref_name }}" -o nak-${{ github.ref_name }}-darwin-${{ matrix.goarch }}
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets. GITHUB_TOKEN }}
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} upload_url: ${{ needs.make-release.outputs.upload_url }}
goos: darwin asset_path: ./nak-${{ github.ref_name }}-darwin-${{ matrix.goarch }}
goarch: ${{ matrix.goarch }} asset_name: nak-${{ github.ref_name }}-darwin-${{ matrix.goarch }}
ldflags: -X main.version=${{ github.ref_name }} asset_content_type: application/octet-stream
overwrite: true
md5sum: false
sha256sum: false
compress_assets: false
smoke-test-linux-amd64: smoke-test-linux-amd64:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs: