Skip to content

Commit

Permalink
Update CMake.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
aghaeifar authored Mar 13, 2024
1 parent ba1bd09 commit bbad0ec
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/CMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down

0 comments on commit bbad0ec

Please sign in to comment.