-
Notifications
You must be signed in to change notification settings - Fork 132
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
Add CI #39
Open
jayvdb
wants to merge
4
commits into
DDVTECH:master
Choose a base branch
from
jayvdb:ci
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add CI #39
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
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 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,81 @@ | ||
--- | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- ci | ||
pull_request: | ||
|
||
env: | ||
PRE_COMMAND: | | ||
git clone https://github.com/livepeer/mbedtls --branch dtls_srtp_support --depth 1 | ||
cd mbedtls | ||
mkdir build | ||
cd build | ||
cmake .. -DENABLE_TESTING=Off | ||
make install | ||
jobs: | ||
# Regular C build with two compilers, using the environment: | ||
build_using_compiler_in_environment: | ||
strategy: | ||
matrix: | ||
compiler: | ||
- [clang, clang++] | ||
- [gcc, g++] | ||
runs-on: ubuntu-latest | ||
# We can use cmakeflags for this, or we can just use | ||
# regular environment variables, as they are already | ||
# supported by github actions: | ||
env: | ||
CC: ${{ matrix.compiler[0] }} | ||
CXX: ${{ matrix.compiler[1] }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker://lpenz/ghaction-cmake:0.18 | ||
with: | ||
dependencies_debian: libsrtp2-dev | ||
pre_command: ${{ env.PRE_COMMAND }} | ||
|
||
# Static analyzers: | ||
linters: | ||
strategy: | ||
matrix: | ||
preset: | ||
- cppcheck | ||
- clang-tidy | ||
- iwyu | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker://lpenz/ghaction-cmake:0.18 | ||
with: | ||
preset: ${{ matrix.preset }} | ||
# Dont fail on iwyu warnings | ||
test_command: 'true' | ||
dependencies_debian: libsrtp2-dev | ||
pre_command: ${{ env.PRE_COMMAND }} | ||
# Tests with various sanitizers and valgrind: | ||
test: | ||
strategy: | ||
matrix: | ||
preset: | ||
# Commented out presets are failing | ||
- clang-sanitize-address | ||
- clang-sanitize-thread | ||
# clang-sanitize-memory fails in ./sourcery | ||
- clang-sanitize-undefined | ||
# clang-sanitize-dataflow rejected as detected as cross-compiling | ||
- clang-sanitize-safe-stack | ||
- valgrind | ||
- install | ||
# cpack CPack generator not specified | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: docker://lpenz/ghaction-cmake:0.18 | ||
with: | ||
preset: ${{ matrix.preset }} | ||
dependencies_debian: libsrtp2-dev | ||
pre_command: ${{ env.PRE_COMMAND }} |
This file contains 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 |
---|---|---|
|
@@ -64,7 +64,6 @@ rules.ninja | |
.cache | ||
aes_ctr128 | ||
/embed/testing | ||
*test | ||
CMakeDoxyfile.in | ||
RelAccXSampler | ||
|
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was curious. The CI isnt very effective if most of the tests are not working.
Are these tests working for other people?
Should we create issues about these tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most test binaries were made to allow scripted batch testing (and thus operate on stdin/stdout). @stronk-dev did some work last year on these scripts - it may be worthwhile to dig that work up again and see how much test coverage it all provides. 🤔