-
Notifications
You must be signed in to change notification settings - Fork 95
Feature/support multiple build types #228
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
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
b83b72f
Updated cmake files to be able to build and install multiple build ty…
dc49710
Updated Config to use build type specific CelixTargets.
73e51ae
Merge branch 'develop' of github.com:apache/celix into feature/suppor…
f86971e
Enabled cmake policy to get rid of warnings.
5bc6333
Restructured compile flags.
78c31b8
Merge branch 'master' of github.com:apache/celix into feature/support…
22b5f7f
Updated linking of library with test
1e48935
Added comment for un-optimized release builds.
876caa2
Added nightly builds with the "Release" build type
ede8fee
Updated workflow name
cb65de3
Adds configuration option to set a build type which does not use a po…
pnoltes 21fdeb3
Reverted sublib linking to previous behaviour, since it is intended l…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| name: Celix MacOS Nightly | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 0 * * *' | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [macOS-latest] | ||
| compiler: [clang] | ||
| timeout-minutes: 120 | ||
| steps: | ||
| - name: Checkout source code | ||
| uses: actions/checkout@master | ||
| - name: Install dependencies | ||
| run: | | ||
| brew update | ||
| brew install lcov zeromq czmq openssl cpputest | ||
| brew unlink openssl && brew link openssl --force | ||
| - name: Build | ||
| env: | ||
| CC: ${{ matrix.compiler }} | ||
| BUILD_OPTIONS: | | ||
| -DENABLE_TESTING=ON | ||
| -DENABLE_ADDRESS_SANITIZER=ON | ||
| run: | | ||
| mkdir build install | ||
| cd build | ||
| cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${BUILD_OPTIONS} -DCMAKE_INSTALL_PREFIX=../install .. | ||
| make -j && make install | ||
| - name: Test | ||
| run: | | ||
| cd $GITHUB_WORKSPACE/build | ||
| export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH:$(pwd)/utils:$(pwd)/framework:$(pwd)/dfi | ||
| make test ARGS="-V" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| name: Celix Ubuntu Nightly | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: '0 0 * * *' | ||
|
|
||
| jobs: | ||
| build: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| #os: [ubuntu-18.04, ubuntu-16.04] | ||
| #compiler: [gcc, clang] | ||
| include: | ||
| - os: ubuntu-18.04 | ||
| name: clang | ||
| sanitizer: false #note sanitizer on clang with cpputest does not work | ||
| compiler: clang | ||
| cxx_compiler: clang++ | ||
| - os: ubuntu-18.04 | ||
| name: gcc | ||
| sanitizer: true | ||
| compiler: gcc | ||
| cxx_compiler: g++ | ||
| - os: ubuntu-18.04 | ||
| name: only v3 api | ||
| sanitizer: true | ||
| compiler: gcc | ||
| cxx_compiler: g++ | ||
| v3_api: true | ||
| timeout-minutes: 120 | ||
| steps: | ||
| - name: Checkout source code | ||
| uses: actions/checkout@master | ||
| - name: Install dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -yq --no-install-recommends \ | ||
| build-essential \ | ||
| curl \ | ||
| uuid-dev \ | ||
| libjansson-dev \ | ||
| libcurl4-openssl-dev \ | ||
| default-jdk \ | ||
| cmake \ | ||
| libffi-dev \ | ||
| libxml2-dev \ | ||
| libczmq-dev \ | ||
| libcpputest-dev | ||
| - name: Build | ||
| env: | ||
| CC: ${{ matrix.compiler }} | ||
| CXX: ${{ matrix.cxx_compiler }} | ||
| BUILD_OPTIONS: | | ||
| -DENABLE_TESTING=ON | ||
| BUILD_OPTIONS_SANITIZER: | | ||
| -DENABLE_ADDRESS_SANITIZER=ON | ||
| BUILD_OPTIONS_V3_API: | | ||
| -DCELIX_USE_ZIP_INSTEAD_OF_JAR=ON | ||
| -DCELIX_INSTALL_DEPRECATED_API=OFF | ||
| run: | | ||
| mkdir build install | ||
| cd build | ||
| if [[ "${{ matrix.v3_api }}" == "true" ]]; then | ||
| export BUILD_OPTIONS="${BUILD_OPTIONS} ${BUILD_OPTIONS_V3_API}" | ||
| fi | ||
| if [[ "${{ matrix.sanitizer }}" == "true" ]]; then | ||
| export BUILD_OPTIONS="${BUILD_OPTIONS} ${BUILD_OPTIONS_SANITIZER}" | ||
| fi | ||
| cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ${BUILD_OPTIONS} -DCMAKE_INSTALL_PREFIX=../install .. | ||
| make -j && make install | ||
| - name: Test | ||
| run: | | ||
| cd $GITHUB_WORKSPACE/build | ||
| export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH:$(pwd)/utils:$(pwd)/framework:$(pwd)/dfi | ||
| make test ARGS="-V" | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.