Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI env versions #112

Merged
merged 7 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: macOS-latest
name: macOS test
env:
GODEBUG: cgocheck=2
GOEXPERIMENT: cgocheck2
steps:
- name: install gdal
run: brew install pkg-config gdal proj geos
Expand All @@ -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
35 changes: 17 additions & 18 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
GOEXPERIMENT: cgocheck2
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.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 @@ -41,23 +42,21 @@ jobs:
uses: actions/cache@v3
with:
path: /optgdal
key: ${{ runner.os }}-install-gdal-${{ matrix.gdal }}-${{ hashFiles('.github/workflows/build-gdal.sh') }}
key: ubuntu-22.04-install-gdal-${{ matrix.gdal }}-${{ hashFiles('.github/workflows/build-gdal.sh') }}
- name: Build GDAL
if: steps.cache-gdal.outputs.cache-hit != 'true'
run: sudo .github/workflows/build-gdal.sh ${{ matrix.gdal }}
test:
needs: install-gdal
runs-on: ubuntu-20.04
env:
GODEBUG: cgocheck=2
runs-on: ubuntu-22.04
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 All @@ -67,7 +66,7 @@ jobs:
uses: actions/cache@v3
with:
path: /optgdal
key: ${{ runner.os }}-install-gdal-${{ matrix.gdal }}-${{ hashFiles('.github/workflows/build-gdal.sh') }}
key: ubuntu-22.04-install-gdal-${{ matrix.gdal }}-${{ hashFiles('.github/workflows/build-gdal.sh') }}
- name: Check GDAL
if: steps.cache-gdal.outputs.cache-hit != 'true'
uses: actions/github-script@v3
Expand All @@ -91,12 +90,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
Loading