mirror of
https://github.com/kaspanet/kaspad.git
synced 2026-02-27 13:43:19 +00:00
Compare commits
1 Commits
v0.9.1
...
github-dep
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7de07cdc97 |
31
.github/workflows/go-deploy.yml
vendored
31
.github/workflows/go-deploy.yml
vendored
@@ -37,33 +37,24 @@ jobs:
|
|||||||
# `-extldflags=-static` - means static link everything, `-tags netgo,osusergo` means use pure go replacements for "os/user" and "net"
|
# `-extldflags=-static` - means static link everything, `-tags netgo,osusergo` means use pure go replacements for "os/user" and "net"
|
||||||
# `-s -w` strips the binary to produce smaller size binaries
|
# `-s -w` strips the binary to produce smaller size binaries
|
||||||
run: |
|
run: |
|
||||||
go build -v -ldflags="-s -w -extldflags=-static" -tags netgo,osusergo -o ./bin/ ./...
|
binary="kaspad-${{ github.event.release.tag_name }}-linux"
|
||||||
archive="bin/kaspad-${{ github.event.release.tag_name }}-linux.zip"
|
echo "binary=${binary}" >> $GITHUB_ENV
|
||||||
asset_name="kaspad-${{ github.event.release.tag_name }}-linux.zip"
|
go build -v -ldflags="-s -w -extldflags=-static" -tags netgo,osusergo -o "${binary}"
|
||||||
zip -r "${archive}" ./bin/*
|
|
||||||
echo "archive=${archive}" >> $GITHUB_ENV
|
|
||||||
echo "asset_name=${asset_name}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Build on Windows
|
- name: Build on Windows
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
go build -v -ldflags="-s -w" -o bin/ ./...
|
binary="kaspad-${{ github.event.release.tag_name }}-win64.exe"
|
||||||
archive="bin/kaspad-${{ github.event.release.tag_name }}-win64.zip"
|
echo "binary=${binary}" >> $GITHUB_ENV
|
||||||
asset_name="kaspad-${{ github.event.release.tag_name }}-win64.zip"
|
go build -v -ldflags="-s -w" -o "${binary}"
|
||||||
powershell "Compress-Archive bin/* \"${archive}\""
|
|
||||||
echo "archive=${archive}" >> $GITHUB_ENV
|
|
||||||
echo "asset_name=${asset_name}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Build on MacOS
|
- name: Build on MacOS
|
||||||
if: runner.os == 'macOS'
|
if: runner.os == 'macOS'
|
||||||
run: |
|
run: |
|
||||||
go build -v -ldflags="-s -w" -o ./bin/ ./...
|
binary="kaspad-${{ github.event.release.tag_name }}-osx"
|
||||||
archive="bin/kaspad-${{ github.event.release.tag_name }}-osx.zip"
|
echo "binary=${binary}" >> $GITHUB_ENV
|
||||||
asset_name="kaspad-${{ github.event.release.tag_name }}-osx.zip"
|
go build -v -ldflags="-s -w" -o "${binary}"
|
||||||
zip -r "${archive}" ./bin/*
|
|
||||||
echo "archive=${archive}" >> $GITHUB_ENV
|
|
||||||
echo "asset_name=${asset_name}" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
|
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
@@ -72,6 +63,6 @@ jobs:
|
|||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
upload_url: ${{ github.event.release.upload_url }}
|
||||||
asset_path: "./${{ env.archive }}"
|
asset_path: "./${{ env.binary }}"
|
||||||
asset_name: "${{ env.asset_name }}"
|
asset_name: "${{ env.binary }}"
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/zip
|
||||||
|
|||||||
@@ -1,8 +1,4 @@
|
|||||||
|
|
||||||
Kaspad v0.9.1 - 2021-03-14
|
|
||||||
===========================
|
|
||||||
* Testnet network reset
|
|
||||||
|
|
||||||
Kaspad v0.9.0 - 2021-03-04
|
Kaspad v0.9.0 - 2021-03-04
|
||||||
===========================
|
===========================
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user