diff --git a/.github/workflows/build-cpp.yml b/.github/workflows/build-cpp.yml index 80efe2698..76f0ec5ba 100644 --- a/.github/workflows/build-cpp.yml +++ b/.github/workflows/build-cpp.yml @@ -96,17 +96,17 @@ jobs: - name: Build working-directory: languages/cpp run: | - if [[ ${{ matrix.settings.os }} == 'macos-12' ]]; then + if [[ ${{ runner.os }} == 'macOS' ]]; then export DNLOHMANN_PATH=/usr/local/opt/nlohmann-json export DBOOST_PATH=/usr/local/opt/boost fi - if [[ ${{ matrix.settings.os }} == 'ubuntu-22.04' ]]; then + if [[ ${{ runner.os }} == 'Linux' ]]; then export DNLOHMANN_PATH=/usr/share/doc/nlohmann-json3-dev export DBOOST_PATH=/usr/share/doc/libboost-all-dev fi - if [[ ${{ matrix.settings.os }} == 'windows-2022' ]]; then + if [[ ${{ runner.os }} == 'Windows' ]]; then export DNLOHMANN_PATH=/c/Program\ Files/nlohmann-json export DBOOST_PATH=/c/Program\ Files/boost fi