Merge pull request #4269 from OSGeo/backport-4266-to-9.5 #3389
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 | |
permissions: | |
contents: read | |
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@v4 | |
- name: Cache | |
uses: actions/cache@v4 | |
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 |