From 9211e839ddce57f22cd3ec866bfde37262b3214c Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Apr 2021 09:05:07 +0300 Subject: workflows/test: test custom Boost directory --- .github/actions/check-boost/action.yml | 13 +++++++++++++ .github/workflows/test.yml | 15 +++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 .github/actions/check-boost/action.yml 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 -- cgit v1.2.3