Skip to content

Commit

Permalink
more CI fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Nov 29, 2023
1 parent 45d9f40 commit 96cd735
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ jobs:
sparse-checkout: |
getargv/include/libgetargv.h
sparse-checkout-cone-mode: false
- run: mv getargv/include/libgetargv.h /usr/local/include/libgetargv.h
- run: mv include/libgetargv.h /usr/local/include/libgetargv.h
working-directory: getargv.cpp/getargv
- name: check
run: "make LIBVER=$(sw_vers -ProductVersion) lint"

Expand Down
11 changes: 5 additions & 6 deletions test/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,15 @@ run_lib_unit_tests_coverage: $(COV_DIR)/lib_unit_tests.profdata

$(COV_DIR)/%.profdata: EXECUTABLE_NAME = $(basename $(notdir $@))
$(COV_DIR)/%.profdata: export ASAN_OPTIONS = $(INNER_ASAN_OPTIONS)
$(COV_DIR)/%.profdata: export LLVM_PROFILE_FILE = $(COV_DIR)/%c$(EXECUTABLE_NAME)-%p.profraw
$(COV_DIR)/%.profdata: $(BIN_DIR)/% | $(COV_DIR) $(BIN_DIR)/child
$< -j0
/usr/bin/xcrun -r llvm-profdata merge --profiled-binary=$< $(COV_DIR)/$(EXECUTABLE_NAME)-*.profraw -o $@
LLVM_PROFILE_FILE="$(COV_DIR)/%c$(EXECUTABLE_NAME)-%p.profraw" $< -j0
/usr/bin/xcrun -r llvm-profdata merge -sparse $(COV_DIR)/$(EXECUTABLE_NAME)-*.profraw -o $@
@$(RM) $(COV_DIR)/$(EXECUTABLE_NAME)-*.profraw
/usr/bin/xcrun -r llvm-cov report --summary-only --instr-profile=$@ --ignore-filename-regex='(unit_test|criterion)' $< $(PRIMARY_SOURCEFILE)
/usr/bin/xcrun -r llvm-cov report --summary-only --instr-profile=$@ --ignore-filename-regex='(unit_test|criterion|.h)' $< $(PRIMARY_SOURCEFILE)

%_coverage_report: $(COV_DIR)/%.profdata | $(BIN_DIR)/%
/usr/bin/xcrun -r llvm-cov show --instr-profile=$< --show-expansions --show-branches=count --show-line-counts-or-regions $| $(PRIMARY_SOURCEFILE)
/usr/bin/xcrun -r llvm-cov report --summary-only --instr-profile=$< --ignore-filename-regex='(unit_test|criterion)' $| $(PRIMARY_SOURCEFILE)
/usr/bin/xcrun -r llvm-cov show --instr-profile=$< --show-expansions --show-branches=count --show-line-counts-or-regions --ignore-filename-regex='(unit_test|criterion|.h)' $|
/usr/bin/xcrun -r llvm-cov report --summary-only --instr-profile=$< --ignore-filename-regex='(unit_test|criterion|.h)' $| $(PRIMARY_SOURCEFILE)

$(LIB_DIR)/%.dylib:
$(MAKE) -C .. PREFIX=$(PREFIX) dylib install_dylib
Expand Down

0 comments on commit 96cd735

Please sign in to comment.