mirror of
https://github.com/zealdocs/zeal.git
synced 2024-11-30 03:13:56 +03:00
ci(github): improve matrix build configuration
This commit is contained in:
parent
4ccd82e412
commit
1d266b9fd9
20
.github/workflows/build-check.yml
vendored
20
.github/workflows/build-check.yml
vendored
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user