Skip to content

Commit

Permalink
Merge pull request #212 from oakmound/feat/workflow-goversion
Browse files Browse the repository at this point in the history
github/workflows: Use unified go variable
  • Loading branch information
200sc authored Jul 10, 2022
2 parents c7fe360 + 8c98620 commit 0251eea
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Go
env:
GO_VERSION: 1.18
on: [push]
jobs:
test-windows-x64:
name: Test (windows amd64)
runs-on: [self-hosted, windows, x64]
steps:

- name: Set up Go 1.18
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand All @@ -28,10 +30,10 @@ jobs:
runs-on: [self-hosted, linux, ARM64]
steps:

- name: Set up Go 1.18
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand All @@ -49,10 +51,10 @@ jobs:
runs-on: [self-hosted, linux, x64]
steps:

- name: Set up Go 1.18
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand All @@ -70,10 +72,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.18
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand All @@ -91,10 +93,10 @@ jobs:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.18
- name: Set up Go ${{ env.GO_VERSION }}
uses: actions/setup-go@v1
with:
go-version: 1.18
go-version: ${{ env.GO_VERSION }}
id: go

- name: Check out code into the Go module directory
Expand Down

0 comments on commit 0251eea

Please sign in to comment.