aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/actions/check-boost-download/action.yml
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-03 09:07:43 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-03 09:28:37 +0300
commite122bed1d389c0269ab5990016c633891622fdea (patch)
treee2d1bce3a0e96bc1bfe4225c0324236f56f3f356 /.github/actions/check-boost-download/action.yml
parentv2.1.1 (diff)
downloadcmake-common-e122bed1d389c0269ab5990016c633891622fdea.tar.gz
cmake-common-e122bed1d389c0269ab5990016c633891622fdea.zip
add GitHub workflow to check Boost CDNs
Diffstat (limited to '')
-rw-r--r--.github/actions/check-boost-download/action.yml19
1 files changed, 19 insertions, 0 deletions
diff --git a/.github/actions/check-boost-download/action.yml b/.github/actions/check-boost-download/action.yml
new file mode 100644
index 0000000..a7c8e6b
--- /dev/null
+++ b/.github/actions/check-boost-download/action.yml
@@ -0,0 +1,19 @@
+name: Check that Boost was downloaded
+description: Check that Boost was downloaded
+runs:
+ using: composite
+ steps:
+ - run: |
+ echo ''
+ echo '----------------------------------------------------------------'
+ echo 'Checking that config.hpp exists'
+ echo '----------------------------------------------------------------'
+ $name = 'config.hpp'
+ $path = Join-Path $env:BOOST_DIR 'boost' $name
+
+ $exists = Test-Path $path -Type Leaf
+
+ if (!(Test-Path $path -Type Leaf)) {
+ throw "$name wasn't found"
+ }
+ shell: pwsh