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 81dfb48 commit 3137115
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/CMake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,11 @@ jobs:
id: cuda-toolkit
with:
cuda: '11.7.0'

- name: Build Boost
id: boost
uses: egor-tensin/build-boost@v1
with:
version: 1.74.0
libraries: program_options log log_setup
platform: x64
configuration: Release


- name: boost install
id: boost-install
run: sudo apt-get update && sudo apt-get install -yq libboost-all-dev

- name: Show paths
run: |
printf 'Boost has been unpacked to: %s\n' '${{ steps.boost.outputs.root }}'
Expand All @@ -46,7 +41,7 @@ jobs:
- run: mkdir ${{github.workspace}}/build

- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -D "BOOST_LIBRARYDIR=${{ steps.boost.outputs.librarydir }}" -DBoost_INCLUDE_DIR=${{ steps.boost.outputs.root }}/include -DBOOST_ROOT=${{steps.boost.outputs.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 3137115

Please sign in to comment.