aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-28 16:18:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-28 16:18:07 +0300
commit4fd8b38e50257d552a8bc149bffa657a84a8dd92 (patch)
tree1a839b475dd284f0b2c02194a3833268022e0069
parentworkflows/test: use cache@v2 (diff)
downloadbuild-boost-4fd8b38e50257d552a8bc149bffa657a84a8dd92.tar.gz
build-boost-4fd8b38e50257d552a8bc149bffa657a84a8dd92.zip
README: update
-rw-r--r--README.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/README.md b/README.md
index 64108be..daf22bd 100644
--- a/README.md
+++ b/README.md
@@ -68,6 +68,26 @@ You can pass it to CMake using the `BOOST_LIBRARYDIR` parameter:
-D "BOOST_LIBRARYDIR=${{ steps.boost.outputs.librarydir }}" \
...
+Caching
+-------
+
+Cache the Boost distribution archive by using the `actions/cache` action.
+For example, for Boost version 1.72.0:
+
+ - name: Cache Boost
+ uses: actions/cache@v2
+ with:
+ path: '${{ runner.workspace }}/boost_*.tar.gz'
+ key: 'boost-1.72.0'
+
+ - name: Build Boost
+ # This won't re-download the archive unnecessarily:
+ uses: egor-tensin/build-boost@v1
+ with:
+ version: 1.72.0
+ ...
+
+
Notes
-----