Skip to content

Commit

Permalink
build: fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
thebaptiste committed Apr 28, 2022
1 parent b88ee81 commit a30be87
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

yum -y install metwork-mfext-layer-mapserver
/opt/metwork-mfext/bin/mfext_wrapper layer_wrapper --layers=mapserver@mfext -- make MAPSERVER_LIB_DIR=/opt/metwork-mfext/opt/mapserver/lib PREFIX=/opt/metwork-mfext/opt/mapserver clean all test install
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,17 @@ on:
branches:
- master

env:
DOCKER_RUN_OPTIONS: "-v ${{ github.workspace }}:/src"
DOCKER_WORKFLOW_SCRIPTS_DIR: /src/.github/workflows
BUILDIMAGE: metwork/mfxxx-centos8-buildimage:integration

jobs:
build:
runs-on: metwork/mfxxx-centos8-buildimage:integration
runs-on: ubuntu-latest
steps:
- name: checkout repository
uses: actions/checkout@v2
- name: build test install
run: |
yum -y install metwork-mfext-layer-mapserver
/opt/metwork-mfext/bin/mfext_wrapper layer_wrapper --layers=mapserver@mfext -- make MAPSERVER_LIB_DIR=/opt/metwork-mfext/opt/mapserver/lib PREFIX=/opt/metwork-mfext/opt/mapserver clean all test install
docker run ${DOCKER_RUN_OPTIONS} --rm ${BUILDIMAGE} /bin/bash -c "${DOCKER_WORKFLOW_SCRIPTS_DIR}/build.sh"

0 comments on commit a30be87

Please sign in to comment.