Skip to content

Commit bb5f5f7

Browse files
authored
CI: ubuntu-20.04 deprecated on 2025-02-01 (#348)
1 parent a34cecc commit bb5f5f7

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/workflows/build-linux.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
build-matrix:
77
strategy:
88
matrix:
9-
os: [ ubuntu-20.04 ]
9+
os: [ ubuntu-latest ]
1010
option: [ minimal, default, maximal ]
1111
runs-on: ${{ matrix.os }}
1212
steps:
@@ -17,9 +17,11 @@ jobs:
1717
run: |
1818
if [[ 'minimal,default,maximal' =~ ${{ matrix.option }} ]]
1919
then
20+
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
2021
sudo apt-get update -y
2122
sudo apt-get upgrade -y
2223
sudo apt-get install -y libcurl4-openssl-dev apache2-dev
24+
sudo apt-get install -y libpng-dev libjpeg-dev
2325
fi
2426
if [[ 'default,maximal' =~ ${{ matrix.option }} ]]
2527
then
@@ -69,7 +71,7 @@ jobs:
6971
7072
- name: Run tests
7173
run: |
72-
if [[ 'ubuntu-20.04' == ${{ matrix.os }} ]] \
74+
if [[ 'ubuntu-latest' == ${{ matrix.os }} ]] \
7375
&& [[ 'default' == ${{ matrix.option }} ]]
7476
then
7577
cd ${{ github.workspace }}/tests

lib/source_mapserver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ struct mc_mapobj {
6060
void mapcache_mapserver_connection_constructor(mapcache_context *ctx, void **conn_, void *params) {
6161
mapcache_source_mapserver *src = (mapcache_source_mapserver*) params;
6262
struct mc_mapobj *mcmap = calloc(1,sizeof(struct mc_mapobj));
63-
mcmap->map = msLoadMap(src->mapfile,NULL);
63+
mcmap->map = msLoadMap(src->mapfile,NULL, NULL);
6464
if(!mcmap->map) {
6565
errorObj *errors = NULL;
6666
ctx->set_error(ctx, 500, "Failed to load mapfile '%s'",src->mapfile);
@@ -229,7 +229,7 @@ void _mapcache_source_mapserver_configuration_check(mapcache_context *ctx, mapca
229229
msSetup();
230230

231231
/* do a test load to check the mapfile is correct */
232-
map = msLoadMap(src->mapfile, NULL);
232+
map = msLoadMap(src->mapfile, NULL, NULL);
233233
if(!map) {
234234
msWriteError(stderr);
235235
ctx->set_error(ctx,400,"failed to load mapfile \"%s\"",src->mapfile);

0 commit comments

Comments
 (0)