Skip to content

Commit ec841a9

Browse files
committed
Add gcc 15 to CI
1 parent 0ec0c5a commit ec841a9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/cmake.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -527,15 +527,15 @@ jobs:
527527
- name: Create Build Environment
528528
# Some projects don't allow in-source building, so create a separate build directory
529529
# We'll use this as our working directory for all subsequent commands
530-
# Use github.workspace since only this path is mounted inside containers
531-
run: cmake -E make_directory ${{ github.workspace }}/build
530+
# Use the GITHUB_WORKSPACE env var so the path resolves correctly inside containers (/__w/...)
531+
run: cmake -E make_directory "$GITHUB_WORKSPACE/build"
532532

533533
- name: Configure CMake
534534
if: (!contains(matrix.config.mingw, 'MINGW'))
535535
# Use a bash shell so we can use the same syntax for environment variable
536536
# access regardless of the host operating system
537537
shell: bash
538-
working-directory: ${{ github.workspace }}/build
538+
working-directory: $GITHUB_WORKSPACE/build
539539
env:
540540
CXX: ${{ matrix.config.cxx }}
541541
# Note the current convention is to use the -S and -B options here to specify source
@@ -555,14 +555,14 @@ jobs:
555555
556556
- name: Build
557557
if: (!contains(matrix.config.mingw, 'MINGW'))
558-
working-directory: ${{ github.workspace }}/build
558+
working-directory: $GITHUB_WORKSPACE/build
559559
shell: bash
560560
# Execute the build. You can specify a specific target with "--target <NAME>"
561561
run: cmake --build . --config ${{ matrix.config.buildtype }}
562562

563563
- name: Test
564564
if: (!contains(matrix.config.mingw, 'MINGW'))
565-
working-directory: ${{ github.workspace }}/build
565+
working-directory: $GITHUB_WORKSPACE/build
566566
shell: bash
567567
# Execute tests defined by the CMake configuration.
568568
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail

0 commit comments

Comments
 (0)