[CI] Fix upload grcov
@@ -48,8 +48,9 @@ jobs:
- name: Upload to s3
run: |
# TODO
- #SUFFIX="$(date +"%Y-%m-%d")-$(git rev-parse --short=8 HEAD)"
- #genhtml -o ./target/debug/coverage/ --show-details --highlight --ignore-errors source --legend "${{ steps.coverage.outputs.report }}"/lcov.info
- #coscmd config -a ${{ secrets.CI_TENCENT_COS_ID }} -s ${{ secrets.CI_TENCENT_COS_KEY }} -b ${{ secrets.CI_TENCENT_COS_BUCKET }} -r ${{ secrets.CI_TENCENT_COS_REGION}} -m 30
- #coscmd upload -r ./target/debug/coverage/ coverage/${SUFFIX}
- #coscmd upload -r ./target/debug/coverage/ coverage/latest
+ SUFFIX="$(date +"%Y-%m-%d")-$(git rev-parse --short=8 HEAD)"
+ ls -aril "${{ steps.coverage.outputs.report }}"
+ genhtml -o ./target/debug/coverage/ --show-details --highlight --ignore-errors source --legend "${{ steps.coverage.outputs.report }}"/lcov.info
+ coscmd config -a ${{ secrets.CI_TENCENT_COS_ID }} -s ${{ secrets.CI_TENCENT_COS_KEY }} -b ${{ secrets.CI_TENCENT_COS_BUCKET }} -r ${{ secrets.CI_TENCENT_COS_REGION}} -m 30
+ coscmd upload -r ./target/debug/coverage/ coverage/${SUFFIX}
+ coscmd upload -r ./target/debug/coverage/ coverage/latest
