diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-03 09:07:43 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-05-03 09:28:37 +0300 |
commit | e122bed1d389c0269ab5990016c633891622fdea (patch) | |
tree | e2d1bce3a0e96bc1bfe4225c0324236f56f3f356 /.github | |
parent | v2.1.1 (diff) | |
download | cmake-common-e122bed1d389c0269ab5990016c633891622fdea.tar.gz cmake-common-e122bed1d389c0269ab5990016c633891622fdea.zip |
add GitHub workflow to check Boost CDNs
Diffstat (limited to '.github')
-rw-r--r-- | .github/actions/check-boost-download/action.yml | 19 | ||||
-rw-r--r-- | .github/workflows/boost_download.yml | 40 |
2 files changed, 59 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 diff --git a/.github/workflows/boost_download.yml b/.github/workflows/boost_download.yml new file mode 100644 index 0000000..d5dc717 --- /dev/null +++ b/.github/workflows/boost_download.yml @@ -0,0 +1,40 @@ +name: Boost (download) + +on: + push: + pull_request: + schedule: + # Weekly, at 5:30 AM on Saturday (somewhat randomly chosen). + - cron: '30 5 * * 6' + workflow_dispatch: + +jobs: + build: + strategy: + matrix: + boost-version: [1.58.0, 1.72.0] + + runs-on: ubuntu-20.04 + + name: 'Download / ${{ matrix.boost-version }}' + + defaults: + run: + shell: pwsh + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Download Boost + uses: ./.github/actions/download-boost + with: + boost-version: '${{ matrix.boost-version }}' + + - name: Check that Boost was downloaded + uses: ./.github/actions/check-boost-download |