aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-18 09:05:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-18 09:05:07 +0300
commit9211e839ddce57f22cd3ec866bfde37262b3214c (patch)
treedda61b538db93895251772b3e36cf292509b242f /.github
parentworkflows/test: factor out a common step (diff)
downloadbuild-boost-9211e839ddce57f22cd3ec866bfde37262b3214c.tar.gz
build-boost-9211e839ddce57f22cd3ec866bfde37262b3214c.zip
workflows/test: test custom Boost directory
Diffstat (limited to '.github')
-rw-r--r--.github/actions/check-boost/action.yml13
-rw-r--r--.github/workflows/test.yml15
2 files changed, 28 insertions, 0 deletions
diff --git a/.github/actions/check-boost/action.yml b/.github/actions/check-boost/action.yml
new file mode 100644
index 0000000..e7c471a
--- /dev/null
+++ b/.github/actions/check-boost/action.yml
@@ -0,0 +1,13 @@
+name: Check that Boost was downloaded
+description: Check that Boost was downloaded
+inputs:
+ root:
+ description: Root Boost directory
+ required: true
+runs:
+ using: composite
+ steps:
+ - run: |
+ $config_path = Join-Path '${{ inputs.root }}' boost config.hpp
+ $(Test-Path $config_path -Type Leaf) -or $(throw "Couldn't find config.hpp at: $config_path")
+ shell: pwsh
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 579e3d8..2799e87 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -67,6 +67,13 @@ jobs:
configuration: Release
libraries: filesystem program_options system
+ - name: Check Boost
+ uses: ./.github/actions/check-boost
+ with:
+ # This tests that Boost is indeed in that directory, don't replace
+ # with ${{ steps.build.outputs.root }}.
+ root: '${{ runner.workspace }}/boost'
+
- name: Check libraries
uses: ./.github/actions/check-libraries
with:
@@ -113,6 +120,14 @@ jobs:
platform: '${{ matrix.platform }}'
configuration: '${{ matrix.configuration }}'
libraries: filesystem program_options system
+ directory: '${{ runner.workspace }}/foo'
+
+ - name: Check Boost
+ uses: ./.github/actions/check-boost
+ with:
+ # This tests that Boost is indeed in that directory, don't replace
+ # with ${{ steps.build.outputs.root }}.
+ root: '${{ runner.workspace }}/foo'
- name: Check libraries
uses: ./.github/actions/check-libraries