Skip to content

Commit

Permalink
CI: Fix Go version
Browse files Browse the repository at this point in the history
Signed-off-by: Hugo Landau <[email protected]>
  • Loading branch information
hlandau committed Aug 7, 2024
1 parent 2e80c5c commit 68c343c
Showing 1 changed file with 27 additions and 12 deletions.
39 changes: 27 additions & 12 deletions .github/workflows/pr_build.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
name: PR Build
on:
push: {}
pull_request: {}
workflow_dispatch: {}
env:
GOTOOLCHAIN: local
jobs:
lint-linux:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
go-version:
- setup: "1.21"
makeArgs: ""
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -16,14 +21,18 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ matrix.GO_VERSION }}
go-version: ${{ matrix.go-version.setup }}
- name: Lint
run: make lint
run: make lint ${{ matrix.go-version.makeArgs }}

test-linux:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
go-version:
- setup: "1.21"
makeArgs: ""
- setup: "1.23.0-rc.2"
makeArgs: "go_version_full=1.23rc2"
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -33,14 +42,16 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ matrix.GO_VERSION }}
go-version: ${{ matrix.go-version.setup }}
- name: Test
run: make test
run: make test ${{ matrix.go-version.makeArgs }}

lint-windows:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
go-version:
- setup: "1.21"
makeArgs: ""
runs-on: windows-2022
defaults:
run:
Expand All @@ -53,7 +64,7 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ matrix.GO_VERSION }}
go-version: ${{ matrix.go-version.setup }}
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -65,12 +76,16 @@ jobs:
mingw-w64-x86_64-toolchain
unzip
- name: Lint
run: make lint
run: make lint ${{ matrix.go-version.makeArgs }}

test-windows:
strategy:
matrix:
GO_VERSION: ["1.21", "1.23rc2"]
go-version:
- setup: "1.21"
makeArgs: ""
- setup: "1.23.0-rc.2"
makeArgs: "go_version_full=1.23rc2"
runs-on: windows-2022
defaults:
run:
Expand All @@ -83,7 +98,7 @@ jobs:
with:
cache: true
cache-dependency-path: v2/go.sum
go-version: ${{ matrix.GO_VERSION }}
go-version: ${{ matrix.go-version.setup }}
- name: Install msys2
uses: msys2/setup-msys2@v2
with:
Expand All @@ -95,7 +110,7 @@ jobs:
mingw-w64-x86_64-toolchain
unzip
- name: Test
run: make test
run: make test ${{ matrix.go-version.makeArgs }}

# This job is just here to make sure that the other jobs have completed
# and is used as a single job to block PR merge from. GH doesn't have a
Expand Down

0 comments on commit 68c343c

Please sign in to comment.