diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 3d879ad1..b4a277ff 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml @@ -21,9 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - # - uses: actions/cache@v3 + # - uses: actions/cache@v4 # with: # path: "**/cpm_modules" # key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} @@ -54,5 +54,4 @@ jobs: - name: test run: | source ~/emsdk/emsdk_env.sh - cd build - ctest --build-config Debug -j4 --verbose + ctest --test-dir build --build-config Debug -j4 --verbose diff --git a/.github/workflows/install.yml b/.github/workflows/install.yml index 66218533..007bf4df 100644 --- a/.github/workflows/install.yml +++ b/.github/workflows/install.yml @@ -20,9 +20,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: "**/cpm_modules" key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} @@ -44,6 +44,4 @@ jobs: run: cmake --build build --config Debug -j4 --verbose - name: test - run: | - cd build - ctest --build-config Debug -j4 --verbose + run: ctest --test-dir build --build-config Debug -j4 --verbose diff --git a/.github/workflows/install_download_all.yml b/.github/workflows/install_download_all.yml index a8356871..536715f4 100644 --- a/.github/workflows/install_download_all.yml +++ b/.github/workflows/install_download_all.yml @@ -20,9 +20,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: "**/cpm_modules" key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} @@ -44,6 +44,4 @@ jobs: run: cmake --build build --config Debug -j4 --verbose - name: test - run: | - cd build - ctest --build-config Debug -j4 --verbose + run: ctest --test-dir build --build-config Debug -j4 --verbose diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 40b492fd..2cfce08d 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -21,9 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: "**/cpm_modules" key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} @@ -35,6 +35,4 @@ jobs: run: cmake --build build -j4 --verbose - name: test - run: | - cd build - ctest --build-config Debug -j4 --verbose + run: ctest --test-dir build --build-config Debug -j4 --verbose diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index be433632..bd299361 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -19,39 +19,38 @@ jobs: build: runs-on: macos-latest + strategy: + matrix: + cxx: [clang++, g++-15] + steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: "**/cpm_modules" key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} - - name: Install ninja and python - shell: bash - run: brew install llvm clang-format ninja python pipx + - name: Install python + run: brew install llvm clang-format python pipx - name: Install builddriver - shell: bash run: pipx install builddriver cmake_format==0.6.11 pyaml - name: configure - shell: bash run: | cmake -S . -B build -G Ninja -DCMAKE_BUILD_TYPE=Debug -DBOOST_UT_ENABLE_RUN_AFTER_BUILD=NO \ - -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --log-level=DEBUG -DFETCHCONTENT_QUIET=OFF + -DCMAKE_EXPORT_COMPILE_COMMANDS=ON --log-level=DEBUG -DFETCHCONTENT_QUIET=OFF -DCMAKE_CXX_COMPILER=${{matrix.cxx}} - name: build run: cmake --build build -j4 --verbose - name: test - shell: bash - run: | - cd build - ctest --build-config Debug -j4 --verbose + run: ctest --test-dir build --build-config Debug -j4 --verbose - name: Run clang-tidy + if: matrix.cc == 'clang' shell: bash run: | export PATH=$(brew --prefix llvm)/bin:${PATH} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index d4b15a1f..d1eb43e1 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -24,9 +24,9 @@ jobs: std: [20] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: "**/cpm_modules" key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} @@ -39,6 +39,4 @@ jobs: run: cmake --build build --config Debug -j4 --verbose - name: test - run: | - cd build - ctest --build-config Debug -j4 --verbose + run: ctest --test-dir build --build-config Debug -j4 --verbose diff --git a/.github/workflows/windows_shared.yml b/.github/workflows/windows_shared.yml index adced379..57177c6f 100644 --- a/.github/workflows/windows_shared.yml +++ b/.github/workflows/windows_shared.yml @@ -24,9 +24,9 @@ jobs: std: [20] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v5 - - uses: actions/cache@v3 + - uses: actions/cache@v4 with: path: "**/cpm_modules" key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }} @@ -39,6 +39,4 @@ jobs: run: cmake --build build --config Debug -j4 --verbose - name: test - run: | - cd build - ctest --build-config Debug -j4 --verbose + run: ctest --test-dir build --build-config Debug -j4 --verbose