2
0
mirror of https://github.com/boostorg/parser.git synced 2026-01-19 04:22:13 +00:00

modernize MacOS CI & update checkout actions

This commit is contained in:
Jannik Glückert
2024-03-31 00:53:50 +01:00
committed by Zach Laine
parent d25207c0ee
commit 6eeed0dce9
3 changed files with 11 additions and 12 deletions

View File

@@ -25,7 +25,7 @@ jobs:
run: sudo apt-get --no-install-recommends -y install lcov libgd-perl
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Configure CMake
run: cmake -DCMAKE_PREFIX_PATH=${{github.workspace}}/build --preset coverage .

View File

@@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup
run: |

View File

@@ -1,4 +1,4 @@
name: macos-12 - Clang 13
name: macos-12 - Clang 14
on:
push:
@@ -10,7 +10,6 @@ env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
jobs:
build:
strategy:
@@ -20,17 +19,17 @@ jobs:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCXX_STD=${{matrix.cxx_std}}
run: cmake -B build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DCXX_STD=${{ matrix.cxx_std }}
- name: Build
working-directory: ${{github.workspace}}/build
run: make -j2
working-directory: build
run: cmake --build .
- name: Test
working-directory: ${{github.workspace}}/build
run: make check
working-directory: build
run: ctest -C ${{ env.BUILD_TYPE }} -j $(sysctl -n hw.ncpu) --output-on-failure