From bbad0ecc248bbdff207c4bb3c7fd437876dc2efa Mon Sep 17 00:00:00 2001 From: Ali Aghaeifar <11705505+aghaeifar@users.noreply.github.com> Date: Wed, 13 Mar 2024 08:48:37 +0100 Subject: [PATCH] Update CMake.yml --- .github/workflows/CMake.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/CMake.yml b/.github/workflows/CMake.yml index 87c03e1..b89c65e 100644 --- a/.github/workflows/CMake.yml +++ b/.github/workflows/CMake.yml @@ -23,15 +23,20 @@ jobs: with: cuda: '11.7.0' - - name: Install boost - uses: MarkusJx/install-boost@v2.4.5 - id: install-boost + - name: Build Boost + id: boost + uses: egor-tensin/build-boost@v1 with: - # REQUIRED: Specify the required boost version - # A list of supported versions can be found here: - # https://github.com/MarkusJx/prebuilt-boost/blob/main/versions-manifest.json - boost_version: 1.74.0 - boost_install_dir: /home/runner/boost + version: 1.71.0 + libraries: filesystem program_options system + platform: x64 + configuration: Release + + - name: Show paths + run: | + printf 'Boost has been unpacked to: %s\n' '${{ steps.boost.outputs.root }}' + printf 'Libraries can be found here: %s\n' '${{ steps.boost.outputs.librarydir }}' + shell: bash - uses: actions/checkout@v3 @@ -41,7 +46,7 @@ jobs: - run: mkdir ${{github.workspace}}/build - name: Configure CMake - run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBoost_LIBRARIES=${{ steps.install-boost.outputs.BOOST_ROOT }}/lib -DBoost_INCLUDE_DIR=${{ steps.install-boost.outputs.BOOST_ROOT }}/include -DBOOST_ROOT=${{ steps.install-boost.outputs.BOOST_ROOT }} + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} - name: Build # Build your program with the given configuration