Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: build Linux in static and shared versions #130

Merged
merged 1 commit into from
Dec 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/linux-gcc13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ on:

jobs:
build_libmatroska:
name: libmatroska with gcc13
name: libmatroska ${{ matrix.shared.name }} with gcc13
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
shared: [
{ "name": "Dynamic", "option": "ON"},
{ "name": "Static", "option": "OFF"}
]
env:
CMAKE_OPTIONS: -DCMAKE_CXX_EXTENSIONS=OFF
CMAKE_MATROSKA_OPTIONS: -DBUILD_EXAMPLES=ON
Expand All @@ -25,8 +32,8 @@ jobs:
path: libebml
# minimum version we support ref: 'release-1.4.3'

- name: Configure libebml
run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }}
- name: Configure ${{ matrix.shared.name }} libebml
run: cmake -S libebml -B libebml/_build ${{ env.CMAKE_OPTIONS }} -DBUILD_SHARED_LIBS=${{ matrix.shared.option }}
env:
CC: gcc-13
CXX: g++-13
Expand All @@ -37,8 +44,8 @@ jobs:
- name: Install libebml
run: cmake --install libebml/_build --prefix ${GITHUB_WORKSPACE}/_built

- name: Configure CMake
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
- name: Configure ${{ matrix.shared.name }} libmatroska
run: cmake -S . -B _build ${{ env.CMAKE_OPTIONS }} ${{ env.CMAKE_MATROSKA_OPTIONS }} -DBUILD_SHARED_LIBS=${{ matrix.shared.option }} -DEBML_DIR="${GITHUB_WORKSPACE}/_built/lib/cmake/EBML"
env:
CC: gcc-13
CXX: g++-13
Expand Down