diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-17 18:46:17 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-17 18:48:59 +0300 |
commit | 5867937c3a61f2898114af47559903a978c20885 (patch) | |
tree | 259afc05b588dff8e51613bc8acc5ab3b3e6bda9 | |
parent | initial commit (diff) | |
download | build-boost-5867937c3a61f2898114af47559903a978c20885.tar.gz build-boost-5867937c3a61f2898114af47559903a978c20885.zip |
workflows/test: add job for different platforms/configurations
-rw-r--r-- | .github/workflows/test.yml | 43 |
1 files changed, 42 insertions, 1 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 720eb38..80b8694 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ on: workflow_dispatch: jobs: - test: + old_and_new: strategy: matrix: version: [1.58.0, 1.74.0] @@ -87,3 +87,44 @@ jobs: $path = Join-Path $librarydir $lib $(Test-Path $path -Type Leaf) -or $(throw "Couldn't find Boost library at: $path") } + + different_configurations: + strategy: + matrix: + os: [ubuntu-20.04, windows-2016, windows-2019] + platform: [x64, x86] + configuration: [Debug, Release] + + runs-on: '${{ matrix.os }}' + + name: '${{ matrix.os }} / ${{ matrix.platform }} / ${{ matrix.configuration }}' + + defaults: + run: + shell: pwsh + + steps: + - name: Checkout + uses: actions/checkout@v2 + + - name: Cache Boost + uses: actions/cache@v2.1.4 + with: + path: '${{ runner.workspace }}/boost_*.tar.gz' + key: 'boost-${{ matrix.version }}' + + - name: Set up GCC + uses: egor-tensin/setup-gcc@v1 + with: + platform: '${{ matrix.platform }}' + if: runner.os == 'Linux' + + - id: build + name: Build Boost + uses: ./ + with: + version: 1.66.0 + toolset: auto + platform: '${{ matrix.platform }}' + configuration: '${{ matrix.configuration }}' + libraries: filesystem program_options system |