From acd6227dd06a7efac2843f5cc8da4b6e350d92d9 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sat, 17 Jan 2026 02:47:34 +0900 Subject: [PATCH] fix darwin build --- .github/workflows/release-cli.yml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 49a20a8..715af36 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -55,18 +55,27 @@ jobs: goarch: [amd64, arm64] steps: - uses: actions/checkout@v3 + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: 'stable' - name: Install 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: - github_token: ${{ secrets.GITHUB_TOKEN }} - goos: darwin - goarch: ${{ matrix.goarch }} - ldflags: -X main.version=${{ github.ref_name }} - overwrite: true - md5sum: false - sha256sum: false - compress_assets: false + upload_url: ${{ needs.make-release.outputs.upload_url }} + asset_path: ./nak-${{ github.ref_name }}-darwin-${{ matrix.goarch }} + asset_name: nak-${{ github.ref_name }}-darwin-${{ matrix.goarch }} + asset_content_type: application/octet-stream smoke-test-linux-amd64: runs-on: ubuntu-latest needs: