mirror of
https://github.com/fiatjaf/nak.git
synced 2026-01-27 20:58:49 +00:00
Compare commits
8 Commits
test-v1.0.
...
test-v1.0.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef83b48ca0 | ||
|
|
766598eee6 | ||
|
|
413b5cf161 | ||
|
|
c2969ba503 | ||
|
|
235e16d34b | ||
|
|
e44dd08527 | ||
|
|
d856f54394 | ||
|
|
d015e979aa |
27
.github/workflows/release-cli.yml
vendored
27
.github/workflows/release-cli.yml
vendored
@@ -24,16 +24,25 @@ jobs:
|
||||
goos: freebsd
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: wangyoucao577/go-release-action@v1.40
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
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
|
||||
go-version: 'stable'
|
||||
- name: Install FUSE dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y libfuse-dev
|
||||
- name: Build binary
|
||||
env:
|
||||
GOOS: ${{ matrix.goos }}
|
||||
GOARCH: ${{ matrix.goarch }}
|
||||
CGO_ENABLED: ${{ matrix.goos == 'windows' && '0' || '1' }}
|
||||
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:
|
||||
runs-on: macos-latest
|
||||
|
||||
Reference in New Issue
Block a user