Skip to content

Commit

Permalink
CI: Re-org CI workflows, ignore /Applications in coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
russellhancox committed Aug 17, 2021
1 parent c7a58c7 commit d11a411
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Expand Up @@ -17,17 +17,17 @@ jobs:

steps:
- uses: actions/checkout@v2
- name: Build Userspace
run: bazel build --apple_generate_dsym -c opt :release --define=SANTA_BUILD_TYPE=ci
- name: Build Driver
run: bazel build --apple_generate_dsym -c opt :release_driver --define=SANTA_BUILD_TYPE=ci
- name: Test
run: bazel test :unit_tests --define=SANTA_BUILD_TYPE=ci
- name: Generate test coverage
run: sh ./coverage/generate_cov.sh
run: sh ./generate_cov.sh
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: ./CoverageData/info.lcov
flag-name: Unit
- name: Build Userspace
run: bazel build --apple_generate_dsym -c opt :release --define=SANTA_BUILD_TYPE=ci
- name: Build Driver
run: bazel build --apple_generate_dsym -c opt :release_driver --define=SANTA_BUILD_TYPE=ci
2 changes: 1 addition & 1 deletion coverage/generate_cov.sh → generate_cov.sh
Expand Up @@ -25,7 +25,7 @@ function generate_lcov() {
true > $COV_FILE
for file in $object_files; do
xcrun llvm-cov export -instr-profile "$PROFILE_PATH/default.profdata" -format=lcov \
--ignore-filename-regex="external/.*" \
--ignore-filename-regex="/Applications/.*|external/.*" \
$file | sed "s,$bazel_base,$GIT_ROOT," >> $COV_FILE
done

Expand Down

0 comments on commit d11a411

Please sign in to comment.