Bump actions/cache from 3.3.2 to 3.3.3 #299
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: 'Linux Clang' | |
env: | |
CMAKE_VERSION: '3.16.x' | |
CMAKE_BUILD_TYPE: 'Release' | |
CMAKE_BUILD_PREFIX: './build' | |
on: | |
push: | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- { icon: 'π¨', cc: clang-10, cxx: clang++-10, name: 'Clang 10' } | |
- { icon: 'π¦', cc: clang-11, cxx: clang++-11, name: 'Clang 11' } | |
- { icon: 'π©', cc: clang-12, cxx: clang++-12, name: 'Clang 12' } | |
name: 'π§ ${{ matrix.icon }} ${{ matrix.name }}' | |
steps: | |
- name: 'π§° Checkout' | |
uses: actions/[email protected] | |
- name: '${{ matrix.icon }} Setup CMake' | |
uses: jwlawson/[email protected] | |
with: | |
cmake-version: '${{env.CMAKE_VERSION}}' | |
github-api-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: '${{ matrix.icon }} Install packages' | |
run: sudo apt-get install libxpm-dev freeglut3-dev libmariadb-dev firebird-dev mysql-client unixodbc-dev postgresql sqlite3 libpq-dev | |
- name: '${{ matrix.icon }} Cache ROOT' | |
uses: actions/[email protected] | |
with: | |
path: '${{ env.CMAKE_BUILD_PREFIX }}/_deps/root-build' | |
key: root-${{ matrix.cc }} | |
- name: 'π§ Configure' | |
env: | |
CC: ${{matrix.cc}} | |
CXX: ${{matrix.cxx}} | |
run: cmake -S . -B ${{ env.CMAKE_BUILD_PREFIX }}/ -D CMAKE_BUILD_TYPE=${{ env.CMAKE_BUILD_TYPE }} | |
- name: 'βοΈ Build' | |
run: cmake --build ${{ env.CMAKE_BUILD_PREFIX }} --config ${{ env.CMAKE_BUILD_TYPE }} --parallel 2 | |
- name: 'π§ͺ Run tests' | |
working-directory: ${{ env.CMAKE_BUILD_PREFIX }} | |
run: ctest -C ${{ env.CMAKE_BUILD_TYPE }} -j2 -VV --output-on-failure |