Skip to content
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
6 changes: 4 additions & 2 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
build-matrix:
strategy:
matrix:
os: [ ubuntu-20.04 ]
os: [ ubuntu-latest ]
option: [ minimal, default, maximal ]
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -17,9 +17,11 @@ jobs:
run: |
if [[ 'minimal,default,maximal' =~ ${{ matrix.option }} ]]
then
sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get install -y libcurl4-openssl-dev apache2-dev
sudo apt-get install -y libpng-dev libjpeg-dev
fi
if [[ 'default,maximal' =~ ${{ matrix.option }} ]]
then
Expand Down Expand Up @@ -69,7 +71,7 @@ jobs:

- name: Run tests
run: |
if [[ 'ubuntu-20.04' == ${{ matrix.os }} ]] \
if [[ 'ubuntu-latest' == ${{ matrix.os }} ]] \
&& [[ 'default' == ${{ matrix.option }} ]]
then
cd ${{ github.workspace }}/tests
Expand Down
4 changes: 2 additions & 2 deletions lib/source_mapserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ struct mc_mapobj {
void mapcache_mapserver_connection_constructor(mapcache_context *ctx, void **conn_, void *params) {
mapcache_source_mapserver *src = (mapcache_source_mapserver*) params;
struct mc_mapobj *mcmap = calloc(1,sizeof(struct mc_mapobj));
mcmap->map = msLoadMap(src->mapfile,NULL);
mcmap->map = msLoadMap(src->mapfile,NULL, NULL);
if(!mcmap->map) {
errorObj *errors = NULL;
ctx->set_error(ctx, 500, "Failed to load mapfile '%s'",src->mapfile);
Expand Down Expand Up @@ -229,7 +229,7 @@ void _mapcache_source_mapserver_configuration_check(mapcache_context *ctx, mapca
msSetup();

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