Skip to content

Commit

Permalink
Test changes for workflow triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix authored Apr 23, 2024
1 parent 5eb31ff commit 25159ec
Showing 1 changed file with 20 additions and 19 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
name: CMake

on:
push:
paths-ignore:
- 'doc/**'
branches-ignore:
- 'backport**'
pull_request:
paths-ignore:
- 'doc/**'
push:
paths-ignore:
- 'doc/**'
branches:
- main
- releasebranch_*
pull_request:
paths-ignore:
- 'doc/**'

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
Expand Down Expand Up @@ -44,13 +45,13 @@ jobs:
restore-keys: |
${{ env.cache-name }}-${{ runner.os }}-${{ github.base_ref }}
${{ env.cache-name }}-${{ runner.os }}
- name: Install CMake 3.16.0
run: |
cd ${GITHUB_WORKSPACE}
wget https://github.com/Kitware/CMake/releases/download/v3.16.0/cmake-3.16.0-Linux-x86_64.tar.gz
tar xzf cmake-3.16.0-Linux-x86_64.tar.gz
echo "CMAKE_DIR=$GITHUB_WORKSPACE/cmake-3.16.0-Linux-x86_64/bin" >> $GITHUB_ENV
echo "$GITHUB_WORKSPACE/cmake-3.16.0-Linux-x86_64/bin" >> $GITHUB_PATH
#- name: Install CMake 3.16.0
#run: |
#cd ${GITHUB_WORKSPACE}
#wget https://github.com/Kitware/CMake/releases/download/v3.16.0/cmake-3.16.0-Linux-x86_64.tar.gz
#tar xzf cmake-3.16.0-Linux-x86_64.tar.gz
#echo "CMAKE_DIR=$GITHUB_WORKSPACE/cmake-3.16.0-Linux-x86_64/bin" >> $GITHUB_ENV
#echo "$GITHUB_WORKSPACE/cmake-3.16.0-Linux-x86_64/bin" >> $GITHUB_PATH
- run: |
cmake --version
- name: Install dependencies
Expand All @@ -71,8 +72,8 @@ jobs:
libboost-thread-dev libboost-program-options-dev libpdal-dev\
subversion libzstd-dev checkinstall \
libglu1-mesa-dev libxmu-dev \
ghostscript wget -y make ccache g++
- run: python -m pip install ninja
ghostscript wget -y make ccache g++ ninja-build
#- run: python -m pip install ninja
- name: Configure ccache
run: |
echo CCACHE_BASEDIR=$PWD >> ${GITHUB_ENV}
Expand All @@ -82,9 +83,9 @@ jobs:
working-directory: ${{ github.workspace }}
- name: Configure
run: |
cmake ${CMAKE_OPTIONS} -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build
cmake ${CMAKE_OPTIONS} -S $GITHUB_WORKSPACE -B $GITHUB_WORKSPACE/build -G Ninja
- name: Build
run: |
cmake --build $GITHUB_WORKSPACE/build --verbose -j$(nproc)
- name: ccache statistics
run: ccache -s
run: ccache -s

0 comments on commit 25159ec

Please sign in to comment.