aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-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