From e122bed1d389c0269ab5990016c633891622fdea Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Mon, 3 May 2021 09:07:43 +0300 Subject: add GitHub workflow to check Boost CDNs --- .github/actions/check-boost-download/action.yml | 19 ++++++++++++ .github/workflows/boost_download.yml | 40 +++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 .github/actions/check-boost-download/action.yml create mode 100644 .github/workflows/boost_download.yml 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 -- cgit v1.2.3