From 08fc4885f7d198b2fb4efdd387e8cdd71a2a3b5c Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Mon, 20 Jan 2025 10:45:04 -0500 Subject: [PATCH] check for boost all in one step --- .github/workflows/build-special.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build-special.yml b/.github/workflows/build-special.yml index eb1d96fdcb..d0a182975b 100644 --- a/.github/workflows/build-special.yml +++ b/.github/workflows/build-special.yml @@ -2,8 +2,8 @@ name: Special Cases CI on: [pull_request] -# Every time you make a push to your PR, it cancel immediately the previous checks, -# and start a new one. The other runner will be available more quickly to your PR. +# Every time you make a push to your PR, it cancel immediately the previous checks, +# and start a new one. The other runner will be available more quickly to your PR. concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} cancel-in-progress: true @@ -115,19 +115,24 @@ jobs: echo "CXX=clang++-${{ matrix.version }}" >> $GITHUB_ENV fi - - name: Install Boost - if: runner.os == 'Linux' && matrix.flag != 'no_boost' - run: | - sudo apt-get -y install libboost-all-dev - - name: Install (macOS) if: runner.os == 'macOS' run: | - brew install cmake ninja boost + brew install cmake ninja sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app echo "CC=clang" >> $GITHUB_ENV echo "CXX=clang++" >> $GITHUB_ENV + - name: Install Boost + run: | + if [ ${{matrix.flag}} != 'no_boost' ]; then + if [ ${{runner.os}} == 'Linux' ]; then + sudo apt-get -y install libboost-all-dev + elif [ ${{runner.os}} == 'macOS' ]; then + brew install boost + fi + fi + - name: Set Allow Deprecated Flag if: matrix.flag == 'deprecated' run: | @@ -181,7 +186,6 @@ jobs: with: swap-size-gb: 12 - - name: Build & Test run: | bash .github/scripts/unix.sh -t