\r
jobs:\r
build_libmatroska:\r
- name: ${{ matrix.config }} libmatroska shared:${{ matrix.BUILD_SHARED_LIBS }} for Windows\r
+ name: libmatroska ${{ matrix.config }} ${{ matrix.shared }}\r
runs-on: windows-latest\r
strategy:\r
fail-fast: false\r
matrix:\r
config: [Debug, Release]\r
- BUILD_SHARED_LIBS: [off, on]\r
+ shared: [Dynamic, Static]\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 libebml\r
- run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }}\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
\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 \r
- run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS=${{ matrix.BUILD_SHARED_LIBS }}\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_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_SHARED_LIBS=ON\r
\r
- name: Build\r
run: cmake --build _build --config ${{ matrix.config }} --parallel\r