criu/0032-ci-replace-deprecated-codecov-bash-uploader.patch
Radostin Stoyanov 46abdd731a
Enable initial rseq support
Signed-off-by: Radostin Stoyanov <rstoyanov@fedoraproject.org>
2022-02-02 11:58:32 +00:00

46 lines
1.4 KiB
Diff

From e11c742e018aeaf60f0e3abef33c557b4799fb9a Mon Sep 17 00:00:00 2001
From: Adrian Reber <areber@redhat.com>
Date: Wed, 27 Oct 2021 07:27:22 +0000
Subject: [PATCH 032/120] ci: replace deprecated codecov bash uploader
Replace deprecated codecov bash uploader with new version:
https://about.codecov.io/blog/introducing-codecovs-new-uploader/
Signed-off-by: Adrian Reber <areber@redhat.com>
---
.github/workflows/gcov-test.yml | 2 ++
Makefile | 4 +++-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/gcov-test.yml b/.github/workflows/gcov-test.yml
index f1b38e77e..f782c5b9d 100644
--- a/.github/workflows/gcov-test.yml
+++ b/.github/workflows/gcov-test.yml
@@ -10,5 +10,7 @@ jobs:
- uses: actions/checkout@v2
- name: Run Coverage Tests
run: sudo -E make -C scripts/ci local GCOV=1
+ - name: Run gcov
+ run: sudo -E find . -name '*gcda' -type f -print0 | sudo -E xargs --null --max-args 128 --max-procs 4 gcov
- name: Run Coverage Analysis
run: sudo -E make codecov
diff --git a/Makefile b/Makefile
index 73b647d6d..d35012615 100644
--- a/Makefile
+++ b/Makefile
@@ -449,7 +449,9 @@ lint:
codecov: SHELL := $(shell which bash)
codecov:
- bash <(curl -s https://codecov.io/bash)
+ curl -Os https://uploader.codecov.io/latest/linux/codecov
+ chmod +x codecov
+ ./codecov
.PHONY: codecov
fetch-clang-format: .FORCE
--
2.34.1