-
-
Notifications
You must be signed in to change notification settings - Fork 272
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #194 from chenrui333/go-1.14
chore(deps): bump go to v1.14
- Loading branch information
Showing
3 changed files
with
13 additions
and
13 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
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 |
---|---|---|
|
@@ -28,28 +28,28 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v1 | ||
with: | ||
go-version: 1.13.x | ||
go-version: 1.14 | ||
|
||
- name: Get current time | ||
uses: gerred/actions/current-time@master | ||
id: current-time | ||
|
||
- name: Set version | ||
# run: echo "::set-env name=RELEASE_VERSION::${GITHUB_REF/refs\/tags\//}" | ||
run: echo "::set-env name=RELEASE_VERSION::$(git describe --tags $(git rev-list --tags --max-count=1))" | ||
|
||
- name: Build ghz | ||
run: | | ||
mkdir ./dist/ | ||
mkdir ./dist/${{ matrix.target }}/ | ||
go build -ldflags='-s -w -X main.version=${{ env.RELEASE_VERSION }} -X main.commit=${{ github.sha }} -X main.date=${{ steps.current-time.outputs.time }}' -o ./dist/${{ matrix.target }}/ ./cmd/ghz/... | ||
- name: Build ghz-web | ||
env: | ||
env: | ||
CGO_ENABLED: 1 | ||
run: | | ||
go build -ldflags='-s -w -X main.version=${{ env.RELEASE_VERSION }} -X main.commit=${{ github.sha }} -X main.date=${{ steps.current-time.outputs.time }}' -o ./dist/${{ matrix.target }}/ ./cmd/ghz-web/... | ||
|
@@ -60,7 +60,7 @@ jobs: | |
cp ./LICENSE ./dist/${{ matrix.target }}/LICENSE | ||
cd ./dist/${{ matrix.target }} | ||
7z a ../../${{ matrix.name }} ghz.exe ghz-web.exe ./LICENSE | ||
- name: Prepare build artifacts [-nix] | ||
if: matrix.os != 'windows-latest' | ||
run: | | ||
|
@@ -150,9 +150,9 @@ jobs: | |
git config --global credential.helper store | ||
git config --global user.name "bojand" | ||
git config --global user.email "[email protected]" | ||
cd $(brew --repo homebrew/core) | ||
cd $(brew --repo homebrew/core) | ||
git fetch origin | ||
sudo git reset --hard origin/master | ||
sudo git reset --hard origin/master | ||
cd - | ||
brew bump-formula-pr --url=https://github.com/bojand/ghz/archive/${{ env.RELEASE_VERSION }}.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v ghz --force | ||
brew bump-formula-pr --url=https://github.com/bojand/ghz/archive/${{ env.RELEASE_VERSION }}.tar.gz --message="Automated release pull request using continuous integration." --no-browse -v ghz-web --force | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module github.com/bojand/ghz | ||
|
||
go 1.13 | ||
go 1.14 | ||
|
||
require ( | ||
cloud.google.com/go v0.46.3 // indirect | ||
|