diff options
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 |