From aaaa72ea731a94826b6b545a647b5802cab55971 Mon Sep 17 00:00:00 2001 From: Martijn Pieters Date: Sat, 30 Nov 2024 16:36:20 +0000 Subject: [PATCH] CI: Use the codecov cli on mac runners Rather than disable uploading, use the cli as suggested in codecov issue https://github.com/codecov/uploader/issues/1687 --- .azure-pipelines/stage-test.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.azure-pipelines/stage-test.yml b/.azure-pipelines/stage-test.yml index e7a393b..f4bb669 100644 --- a/.azure-pipelines/stage-test.yml +++ b/.azure-pipelines/stage-test.yml @@ -69,15 +69,15 @@ stages: condition: and(eq(variables.operatingSystem, 'Linux'), variables['codecov.token'], succeeded()) displayName: "Upload coverage reports (Linux)" -# Codecov-cli binary is incompatible with macos 12, it appears. -# - bash: | -# curl -Os https://uploader.codecov.io/latest/macos/codecov -# chmod +x codecov -# ./codecov -t ${CODECOV_TOKEN} -f coverage.xml -X gcov -# env: -# CODECOV_TOKEN: $(codecov.token) -# condition: and(eq(variables.operatingSystem, 'Mac'), variables['codecov.token'], succeeded()) -# displayName: "Upload coverage reports (MacOS)" + # On mac runners, use the codecov cli tool instead of the uploader, see https://github.com/codecov/uploader/issues/1687 + - bash: | + curl -Os https://cli.codecov.io/latest/macos/codecov + chmod +x codecov + ./codecov upload-process -t ${CODECOV_TOKEN} -f coverage.xml -X gcov + env: + CODECOV_TOKEN: $(codecov.token) + condition: and(eq(variables.operatingSystem, 'Mac'), variables['codecov.token'], succeeded()) + displayName: "Upload coverage reports (MacOS)" - pwsh: | $ProgressPreference = 'SilentlyContinue'