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