Skip to content

Commit

Permalink
ci: test shared library build
Browse files Browse the repository at this point in the history
  • Loading branch information
szhorvat committed Nov 18, 2024
1 parent caafebc commit 5864102
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,45 @@ jobs:
matrix:
config:
- {
name: "Windows",
name: "Windows static",
os: windows-latest,
build_type: "Release",
shared_libs: false,
generators: "Visual Studio 17 2022"
}
- {
name: "Ubuntu Linux",
name: "Ubuntu Linux static",
os: ubuntu-latest,
build_type: "Release",
shared_libs: false,
generators: "Ninja"
}
- {
name: "macOS",
name: "macOS static",
os: macos-latest,
build_type: "Release",
shared_libs: false,
generators: "Ninja"
}
- {
name: "Windows shared",
os: windows-latest,
build_type: "Release",
shared_libs: true,
generators: "Visual Studio 17 2022"
}
- {
name: "Ubuntu Linux shared",
os: ubuntu-latest,
build_type: "Release",
shared_libs: true,
generators: "Ninja"
}
- {
name: "macOS shared",
os: macos-latest,
build_type: "Release",
shared_libs: true,
generators: "Ninja"
}

Expand Down Expand Up @@ -56,6 +80,7 @@ jobs:
cmake \
-S . \
-B build \
-DBUILD_SHARED_LIBS=${{ matrix.config.shared_libs }} \
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-G "${{ matrix.config.generators }}" \
-DCMAKE_INSTALL_PREFIX:PATH=instdir
Expand All @@ -76,7 +101,7 @@ jobs:
uses: actions/upload-artifact@v4
if: always()
with:
name: unit-test-results-${{ matrix.config.os }}
name: unit-test-results-${{ matrix.config.os }}-${{ matrix.config.shared_libs }}
path: build/report.xml

- name: Install and strip
Expand Down

0 comments on commit 5864102

Please sign in to comment.