Skip to content

Commit

Permalink
add cached boost to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
ichinii committed May 21, 2024
1 parent fa9f3bb commit 443a2df
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
- name: Cache Boost
uses: actions/cache@v2
with:
path: '${{ runner.workspace }}/boost_*.tar.gz'
key: 'boost-1.85.0'

- name: Build Boost
# This won't re-download the archive unnecessarily:
uses: egor-tensin/build-boost@v1
with:
version: 1.85.0
libraries: align assert atomic config core predef preprocessor static_assert throw_exception type_traits
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

0 comments on commit 443a2df

Please sign in to comment.