Merge pull request #3911 from rouault/fix_3900 #2719
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clang Linux | |
on: | |
push: | |
paths-ignore: | |
- 'docs/**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} | |
cancel-in-progress: true | |
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 | |
uses: actions/checkout@v3 | |
- name: Cache | |
uses: actions/cache@v3 | |
id: cache | |
with: | |
path: | | |
${{ github.workspace }}/ccache.tar.gz | |
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 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 |