Skip to content

Commit

Permalink
upgrade go version to 1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Apr 14, 2022
1 parent 584bea4 commit e2c41cf
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Building From Source
run: |
go mod tidy -compat=1.17
go mod tidy -compat=1.18
go run ./scripts/date.go >> date.txt
go build -ldflags "-X main.version=$(git describe --abbrev=0 --tags) -X main.buildDate=$(cat date.txt)" -o tran
Expand All @@ -40,7 +40,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Building From Source
run: |
Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Set up `GoReleaser`
uses: goreleaser/goreleaser-action@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Build
run: |
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,29 +22,29 @@ jobs:
persist-credentials: false
fetch-depth: 0

- name: Set up `Go`
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18

- name: Setup `Node.js`
- name: Setup Node.js
uses: actions/[email protected]
with:
node-version: 16

- name: Set up `GoReleaser`
- name: Set up GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
install-only: true

- name: Set up `Task`
- name: Set up Task
uses: arduino/setup-task@v1

- name: Set up `Tag`
- name: Set up Tag
id: ghtag
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}

- name: Set up `Date`
- name: Set up Date
run: go run ./scripts/date.go >> date.txt

- name: Build
Expand Down
2 changes: 1 addition & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ release:

before:
hooks:
- go mod tidy -compat=1.17
- go mod tidy -compat=1.18

builds:
- <<: &build_defaults
Expand Down
2 changes: 1 addition & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tasks:
build:
cmds:
- task: set-tag-and-date
- go mod tidy -compat=1.17
- go mod tidy -compat=1.18
- go build -ldflags "-X main.version=$(cat tag.txt) -X main.buildDate=$(cat date.txt)" -o tran

install:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/abdfnx/tran

go 1.17
go 1.18

require (
github.com/AlecAivazis/survey/v2 v2.3.4
Expand Down

0 comments on commit e2c41cf

Please sign in to comment.