Skip to content

Commit

Permalink
Action: build static and dynamic libraries on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Oct 2, 2022
1 parent 072ecbf commit 67032e4
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:

jobs:
build_libmatroska:
name: ${{ matrix.config }} libmatroska for Windows
name: ${{ matrix.config }} libmatroska shared:${{ matrix.BUILD_SHARED_LIBS }} for Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
config: [Debug, Release]
BUILD_SHARED_LIBS: [off, on]
steps:
- uses: lukka/get-cmake@latest

Expand All @@ -27,18 +28,18 @@ jobs:
# minimum version we support ref: 'release-1.4.3'

- name: Configure libebml
run: cmake -S libebml -B libebml/_build
run: cmake -S libebml -B libebml/_build -DBUILD_SHARED_LIBS="${{ matrix.BUILD_SHARED_LIBS }}"

- name: Build libebml
run: cmake --build libebml/_build --config ${{ matrix.config }} --parallel

- name: Install libebml
run: cmake --install libebml/_build --config ${{ matrix.config }} --prefix ${GITHUB_WORKSPACE}/_built

- name: Configure CMake
run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
- name: Configure
run: cmake -S . -B _build -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML" -DBUILD_SHARED_LIBS="${{ matrix.BUILD_SHARED_LIBS }}"

- name: Build with CMake
- name: Build
run: cmake --build _build --config ${{ matrix.config }} --parallel

- name: Test installation
Expand Down

0 comments on commit 67032e4

Please sign in to comment.