Skip to content
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

Fix codecov #348

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ jobs:
run: cargo msrv --path crates/web5/ verify

test:
permissions:
id-token: write
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
Expand All @@ -80,8 +82,9 @@ jobs:
LLVM_PROFILE_FILE: web5-rs-%p-%m.profraw
- name: Upload test coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 #v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
use_oidc: true
files: '*.profraw'

build_aarch64_apple_darwin:
runs-on: macos-latest
Expand All @@ -96,6 +99,10 @@ jobs:
run: |
cd bindings/web5_uniffi/libtargets/aarch64_apple_darwin
./build
if cargo tree | grep -q ring; then
echo "::error title=ring library found in compiled binary::The ring library has unclear licensing and we are not sure if it can be put in the compiled binary"
exit 1
fi
- name: Upload .dylib
uses: actions/upload-artifact@v4.0.0
with:
Expand All @@ -115,6 +122,10 @@ jobs:
run: |
cd bindings/web5_uniffi/libtargets/x86_64_apple_darwin
./build
if cargo tree | grep -q ring; then
echo "::error title=ring library found in compiled binary::The ring library has unclear licensing and we are not sure if it can be put in the compiled binary"
exit 1
fi
- name: Upload .dylib
uses: actions/upload-artifact@v4.0.0
with:
Expand All @@ -130,6 +141,10 @@ jobs:
run: |
cd bindings/web5_uniffi/libtargets/x86_64_unknown_linux_gnu
./build
if cargo tree | grep -q ring; then
echo "::error title=ring library found in compiled binary::The ring library has unclear licensing and we are not sure if it can be put in the compiled binary"
exit 1
fi
- name: Upload .so
uses: actions/upload-artifact@v4.0.0
with:
Expand All @@ -145,6 +160,10 @@ jobs:
run: |
cd bindings/web5_uniffi/libtargets/x86_64_unknown_linux_musl
./build
if cargo tree | grep -q ring; then
echo "::error title=ring library found in compiled binary::The ring library has unclear licensing and we are not sure if it can be put in the compiled binary"
exit 1
fi
- name: Upload .so
uses: actions/upload-artifact@v4.0.0
with:
Expand Down Expand Up @@ -174,6 +193,8 @@ jobs:
path: bound/kt/src/main/resources/web5_uniffi_x86_64_pc_windows_msvc.dll

kotlin-acceptance-testing:
permissions:
id-token: write
needs:
- build_aarch64_apple_darwin
- build_x86_64_apple_darwin
Expand Down Expand Up @@ -233,8 +254,10 @@ jobs:
mvn test --batch-mode
- name: Upload test coverage to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 #v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
use_oidc: true
working-directory: bound/kt
files: target/kover/test.ic

kotlin-deploy-snapshot:
needs:
Expand Down
Loading