Skip to content

Commit

Permalink
CI fix: Go version bump, release artifacts include fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Kornilov committed Jul 2, 2021
1 parent 9d5c093 commit 827b193
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
fail-fast: true
matrix:
go:
- 1.15.12
- 1.15.13
os:
- ubuntu-latest

Expand All @@ -46,17 +46,23 @@ jobs:
release-build:
name: Release Build
runs-on: ubuntu-latest
env:
GOPATH: /home/runner/work/dstation/dstation
working-directory: src/github.com/${{ github.repository }}

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Go toolchain
uses: actions/setup-go@v2
with:
go-version: 1.15.12
go-version: 1.15.13

- name: Checkout repository
uses: actions/checkout@v2
with:
path: ${{ env.working-directory }}

- name: Binaries crossbuild
working-directory: ${{ env.working-directory }}
run: |
make build-binaries
Expand All @@ -66,7 +72,7 @@ jobs:
with:
draft: true
files: |
.builds/dstation-*
${{ env.GOPATH }}/${{ env.working-directory }}/builds/dstation-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@ build-binaries: go.sum
@echo " TM version: $(tm_version)"
@mkdir -p ./builds
@go get github.com/crazy-max/xgo
xgo -go 1.15.11 --ldflags='$(ldflags)' --tags='$(build_tags)' --out='./builds/dstation-${app_version}' -targets='windows/amd64,linux/amd64,darwin/amd64' ./cmd/dstation
xgo -go='1.15.13' --ldflags='$(ldflags)' --tags='$(build_tags)' --out='./builds/dstation-${app_version}' -targets='windows/amd64,linux/amd64,darwin/amd64' ./cmd/dstation

0 comments on commit 827b193

Please sign in to comment.