Skip to content

Commit

Permalink
update CI env versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tbonfort committed Sep 11, 2023
1 parent 5f05eb4 commit 628798f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ jobs:
- name: Setup Go
uses: actions/setup-go@v2
with:
go-version: 1.19
go-version: 1.21
- name: Tests
run: go test . -race
27 changes: 14 additions & 13 deletions .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ on:
pull_request:

jobs:
ubuntu2004:
runs-on: ubuntu-20.04
ubuntu:
runs-on: ${{ matrix.os }}
env:
GODEBUG: cgocheck=2
strategy:
matrix:
go: [ '1.19', '1.20' ]
name: Go ${{ matrix.go }} + GDAL on ubuntu 20.04 test
os: [ 'ubuntu-20.04', 'ubuntu-22.04' ]
go: [ '1.20', '1.21' ]
name: Go ${{ matrix.go }} + GDAL on ${{ matrix.os }} test
steps:
- name: APT
run: sudo apt-get update && sudo apt-get install gcc g++ libgeos-c1v5 libproj15 libsqlite3-0 pkg-config libjpeg-turbo8 libgdal-dev
run: sudo apt-get update && sudo apt-get install gcc g++ pkg-config libgdal-dev
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
Expand All @@ -27,10 +28,10 @@ jobs:
- name: Coverage Tests
run: go test . -race
install-gdal:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
matrix:
gdal: [ 'release/3.4', 'release/3.5', 'release/3.6', 'master' ]
gdal: [ 'release/3.5', 'release/3.6', 'release/3.7', 'master' ]
steps:
- name: optgdal
run: sudo mkdir /optgdal && sudo chown -R $USER /optgdal
Expand All @@ -47,17 +48,17 @@ jobs:
run: sudo .github/workflows/build-gdal.sh ${{ matrix.gdal }}
test:
needs: install-gdal
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
env:
GODEBUG: cgocheck=2
strategy:
matrix:
go: [ '1.19', '1.20' ]
gdal: [ 'release/3.4', 'release/3.5', 'release/3.6', 'master' ]
go: [ '1.20', '1.21' ]
gdal: [ 'release/3.5', 'release/3.6', 'release/3.7', 'master' ]
name: Go ${{ matrix.go }} + GDAL ${{ matrix.gdal }} test
steps:
- name: APT
run: sudo apt-get update && sudo apt-get install gcc g++ libgeos-c1v5 libproj15 libsqlite3-0 pkg-config libjpeg-turbo8
run: sudo apt-get update && sudo apt-get install gcc g++ '^libgeos-c1v[0-9]$' '^libproj[0-9]{2}$' '^libsqlite3-[0-9]$' pkg-config libjpeg-turbo8
- name: optgdal
run: sudo mkdir /optgdal && sudo chown -R $USER /optgdal
- name: Checkout
Expand Down Expand Up @@ -91,12 +92,12 @@ jobs:
env:
PKG_CONFIG_PATH: /optgdal/lib/pkgconfig/
- name: Send coverage
if: ${{ matrix.go == '1.20' && matrix.gdal == 'master' }}
if: ${{ matrix.go == '1.21' && matrix.gdal == 'master' }}
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov
- name: golangci-lint
if: ${{ matrix.go == '1.20' && matrix.gdal == 'master' }}
if: ${{ matrix.go == '1.21' && matrix.gdal == 'master' }}
uses: reviewdog/action-golangci-lint@v1
env:
PKG_CONFIG_PATH: /optgdal/lib/pkgconfig/
Expand Down

0 comments on commit 628798f

Please sign in to comment.