Merge pull request #2 from mattn/copilot/fix-fuse-installation-issue

Switch to softprops/action-gh-release and add FUSE dependencies
This commit is contained in:
mattn
2026-01-17 16:18:43 +09:00
committed by GitHub

View File

@@ -24,16 +24,24 @@ jobs:
goos: freebsd goos: freebsd
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: wangyoucao577/go-release-action@v1.40 - name: Set up Go
uses: actions/setup-go@v4
with: with:
github_token: ${{ secrets.GITHUB_TOKEN }} go-version: 'stable'
goos: ${{ matrix.goos }} - name: Install FUSE dependencies
goarch: ${{ matrix.goarch }} run: |
ldflags: -X main.version=${{ github.ref_name }} sudo apt-get update
overwrite: true sudo apt-get install -y libfuse-dev
md5sum: false - name: Build binary
sha256sum: false env:
compress_assets: false GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -ldflags "-X main.version=${{ github.ref_name }}" -o nak-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
with:
files: ./nak-${{ github.ref_name }}-${{ matrix.goos }}-${{ matrix.goarch }}
build-darwin: build-darwin:
runs-on: macos-latest runs-on: macos-latest