fail-fast: false\r
matrix:\r
config: [Debug, Release]\r
- shared: [Dynamic, Static]\r
+ shared: [\r
+ { "name": "Dynamic", "option": "ON"},\r
+ { "name": "Static", "option": "OFF"}\r
+ ]\r
steps:\r
- uses: lukka/get-cmake@latest\r
\r
path: libebml\r
# minimum version we support ref: 'release-1.4.3'\r
\r
- - name: Configure static libebml\r
- if: ${{ matrix.shared == 'Static' }}\r
- run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=OFF\r
- - name: Configure dynamic libebml\r
- if: ${{ matrix.shared == 'Dynamic' }}\r
- run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=ON\r
+ - name: Configure ${{ matrix.shared.name }} libebml\r
+ run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=${{ matrix.shared.option }}\r
\r
- name: Build libebml\r
run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel\r
- name: Install libebml\r
run: cmake --install libebml/_build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built\r
\r
- - name: Configure static library\r
- if: ${{ matrix.shared == 'Static' }}\r
- run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=OFF\r
- - name: Configure dynamic library\r
- if: ${{ matrix.shared == 'Dynamic' }}\r
- run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=ON\r
+ - name: Configure ${{ matrix.shared.name }} library\r
+ run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_EXAMPLES=ON -DBUILD_SHARED_LIBS=${{ matrix.shared.option }}\r
\r
- name: Build\r
run: cmake --build _build --config ${{ matrix.config }} --parallel\r