Skip to content

Commit

Permalink
CI: add testing for -DENABLE_TIFF=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault authored and github-actions[bot] committed Sep 30, 2023
1 parent f0b6dcd commit 435e752
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/clang_linux.yml
Expand Up @@ -17,6 +17,21 @@ jobs:

clang_linux:
runs-on: ubuntu-latest
env:
PROJ_CMAKE_BUILD_OPTIONS: ${{ matrix.PROJ_CMAKE_BUILD_OPTIONS }}

strategy:
fail-fast: false
matrix:
include:
- name: Regular
id: regular
PROJ_CMAKE_BUILD_OPTIONS: ""

- name: Without TIFF
id: without_tiff
PROJ_CMAKE_BUILD_OPTIONS: "-DENABLE_TIFF=OFF"

if: "!contains(github.event.head_commit.message, '[ci skip]') && !contains(github.event.head_commit.message, '[skip ci]')"
steps:
- name: Checkout
Expand All @@ -28,8 +43,8 @@ jobs:
with:
path: |
${{ github.workspace }}/ccache.tar.gz
key: ${{ runner.os }}-cache-clang-${{ github.run_id }}
restore-keys: ${{ runner.os }}-cache-clang-
key: ${{ runner.os }}-cache-clang-${{ matrix.id }}-${{ github.run_id }}
restore-keys: ${{ runner.os }}-cache-clang-${{ matrix.id }}-

- name: Run
run: docker run -e CI -e TRAVIS_BUILD_DIR="$PWD" -e WORK_DIR="$PWD" -e TRAVIS_OS_NAME=linux -e BUILD_NAME=linux_clang -v $PWD:$PWD ubuntu:20.04 $PWD/.github/workflows/clang_linux/start.sh
run: docker run -e CI -e TRAVIS_BUILD_DIR="$PWD" -e PROJ_CMAKE_BUILD_OPTIONS="$PROJ_CMAKE_BUILD_OPTIONS" -e WORK_DIR="$PWD" -e TRAVIS_OS_NAME=linux -e BUILD_NAME=linux_clang -v $PWD:$PWD ubuntu:20.04 $PWD/.github/workflows/clang_linux/start.sh
1 change: 1 addition & 0 deletions travis/install.sh
Expand Up @@ -56,6 +56,7 @@ cd shared_build
cmake \
-D CMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE} \
-D USE_CCACHE=${USE_CCACHE} \
${PROJ_CMAKE_BUILD_OPTIONS:-} \
-D PROJ_DB_CACHE_DIR=$HOME/.ccache \
-D BUILD_SHARED_LIBS=ON \
-D BUILD_EXAMPLES=ON \
Expand Down

0 comments on commit 435e752

Please sign in to comment.