ci(github): improve matrix build configuration

This commit is contained in:
Oleg Shparber 2020-05-03 01:27:35 -04:00
parent 4ccd82e412
commit 1d266b9fd9

View File

@ -8,13 +8,21 @@ on:
jobs:
build-ubuntu:
name: Ubuntu (PORTABLE_BUILD=${{ matrix.env.ZEAL_PORTABLE_BUILD }})
runs-on: ubuntu-latest
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
matrix:
env:
- ZEAL_PORTABLE_BUILD: "OFF"
- ZEAL_PORTABLE_BUILD: "ON"
config:
- {
name: "Ubuntu 18.04",
os: ubuntu-18.04,
options: { ZEAL_PORTABLE_BUILD: "OFF" },
}
- {
name: "Ubuntu 18.04, Portable",
os: ubuntu-18.04,
options: { ZEAL_PORTABLE_BUILD: "ON" },
}
steps:
- name: Checkout
@ -37,7 +45,7 @@ jobs:
run: |
mkdir -p build
cd build
cmake -DZEAL_PORTABLE_BUILD="${ZEAL_PORTABLE_BUILD}" ..
cmake -DZEAL_PORTABLE_BUILD="${{ matrix.config.options.ZEAL_PORTABLE_BUILD }}" ..
- name: Build
run: cmake --build build