From 00fbda9af71addee71a2b8f48629e757d8673170 Mon Sep 17 00:00:00 2001 From: mattn Date: Sat, 17 Jan 2026 01:43:19 +0900 Subject: [PATCH] use native runner and install macfuse --- .github/workflows/release-cli.yml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release-cli.yml b/.github/workflows/release-cli.yml index 620debb..49a20a8 100644 --- a/.github/workflows/release-cli.yml +++ b/.github/workflows/release-cli.yml @@ -24,15 +24,13 @@ jobs: - make-release strategy: matrix: - goos: [linux, freebsd, darwin, windows] + goos: [linux, freebsd, windows] goarch: [amd64, arm64, riscv64] exclude: - goarch: arm64 goos: windows - goarch: riscv64 goos: windows - - goarch: riscv64 - goos: darwin - goarch: arm64 goos: freebsd steps: @@ -42,6 +40,28 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} goos: ${{ matrix.goos }} goarch: ${{ matrix.goarch }} + ldflags: -X main.version=${{ github. ref_name }} + overwrite: true + md5sum: false + sha256sum: false + compress_assets: false + + build-darwin: + runs-on: macos-latest + needs: + - make-release + strategy: + matrix: + goarch: [amd64, arm64] + steps: + - uses: actions/checkout@v3 + - name: Install macFUSE + run: brew install --cask macfuse + - uses: wangyoucao577/go-release-action@v1.40 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + goos: darwin + goarch: ${{ matrix.goarch }} ldflags: -X main.version=${{ github.ref_name }} overwrite: true md5sum: false