mirror of
https://github.com/redhat-developer/odo.git
synced 2025-10-19 03:06:19 +03:00
ci: Build against more recent versions of Go
This commit is contained in:
19
.github/workflows/ci.yaml
vendored
19
.github/workflows/ci.yaml
vendored
@@ -39,6 +39,21 @@ jobs:
|
||||
|
||||
build_odo:
|
||||
runs-on: ubuntu-latest
|
||||
name: Build (Go ${{ matrix.go-version }})
|
||||
strategy:
|
||||
matrix:
|
||||
go-version: [ '1.19' ]
|
||||
# experimental: [false]
|
||||
upload: [true]
|
||||
include:
|
||||
- go-version: '1.20'
|
||||
upload: false
|
||||
- go-version: '1.21'
|
||||
upload: false
|
||||
- go-version: '1.22'
|
||||
upload: false
|
||||
- go-version: '1.23'
|
||||
upload: false
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
@@ -46,7 +61,8 @@ jobs:
|
||||
- name: Setup Go
|
||||
uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version-file: 'go.mod'
|
||||
# go-version-file: 'go.mod'
|
||||
go-version: ${{ matrix.go-version }}
|
||||
- name: Build odo
|
||||
run: make bin
|
||||
- run: |
|
||||
@@ -54,6 +70,7 @@ jobs:
|
||||
./odo version
|
||||
- name: 'Upload odo'
|
||||
uses: actions/upload-artifact@v4
|
||||
if: ${{ matrix.upload }}
|
||||
with:
|
||||
name: odo_bin
|
||||
path: odo
|
||||
|
||||
Reference in New Issue
Block a user