-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1626151
commit e3a7c24
Showing
2 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release EasyCmd | ||
on: | ||
push: | ||
tags: | ||
- 'v0.*' | ||
- 'draft-*' | ||
|
||
jobs: | ||
publishGitRelease: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: '^1.20' | ||
check-latest: true | ||
|
||
- name: Cross compile | ||
run: | | ||
sudo apt-get install rhash -y | ||
go install github.com/mitchellh/[email protected] | ||
mkdir -p build | ||
./scripts/xcompile.sh | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: build/* | ||
draft: true | ||
fail_on_unmatched_files: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
set -e | ||
# you may need to go install github.com/mitchellh/[email protected] first | ||
echo $VERSION | ||
CGO_ENABLED=0 gox -ldflags "-s -w ${LDFLAGS}" -output="build/easycmd_{{.OS}}_{{.Arch}}" --osarch="darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm linux/arm64" | ||
|
||
cd build | ||
|
||
rhash -r -a . -o checksums | ||
|
||
rhash -r -a --bsd . -o checksums-bsd | ||
|
||
rhash --list-hashes > checksums_hashes_order |