Skip to content

Commit 42132ff

Browse files
authored
Merge pull request #296 from jonathangreen/feature/fix-osx
Update osx workflow
2 parents 64d9bc1 + 47cb969 commit 42132ff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/macosx.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
CFLAGS: "-fprofile-instr-generate -fcoverage-mapping"
2323
LDFLAGS: "-fprofile-instr-generate -fcoverage-mapping"
2424
run: |
25+
export PKG_CONFIG_PATH="$(brew --prefix)/opt/libxml2/lib/pkgconfig"
2526
python -m build
2627
rm -rf build/
2728
- name: Set environment variables
@@ -40,5 +41,5 @@ jobs:
4041
- name: Report coverage to codecov
4142
run: |
4243
/Library/Developer/CommandLineTools/usr/bin/llvm-profdata merge -sparse ${{ env.LLVM_PROFILE_FILE }} -output pyxmlsec.profdata
43-
/Library/Developer/CommandLineTools/usr/bin/llvm-cov show ${{ env.PYXMLSEC_LIBFILE }} -instr-profile=pyxmlsec.profdata src > coverage.txt
44+
/Library/Developer/CommandLineTools/usr/bin/llvm-cov show ${{ env.PYXMLSEC_LIBFILE }} --arch=$(uname -m) --instr-profile=pyxmlsec.profdata src > coverage.txt
4445
bash <(curl -s https://codecov.io/bash) -f coverage.txt

0 commit comments

Comments
 (0)