Skip to content

Commit

Permalink
ci: Build against more recent versions of Go
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Oct 12, 2024
1 parent b8fcd74 commit 38c079b
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,21 +39,38 @@ 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:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- 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: |
chmod +x ./odo
./odo version
- name: 'Upload odo'
uses: actions/upload-artifact@v4
if: ${{ matrix.upload }}
with:
name: odo_bin
path: odo
Expand Down

0 comments on commit 38c079b

Please sign in to comment.