From 2ec695381e5a72fd7d1340b54a50d047cada8450 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 4 Apr 2025 22:27:47 +0200 Subject: [PATCH 1/3] ci: adjust to code cov v5 --- .github/workflows/ci.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 960f266..7c84d64 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -120,8 +120,9 @@ jobs: path: lcov.info - name: Upload coverage to codecov.io - uses: codecov/codecov-action@v4 + uses: codecov/codecov-action@v5 with: - token: ${{ secrets.CODECOV_TOKEN }} - file: lcov.info + files: lcov.info fail_ci_if_error: true + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} From 4a1c683834287f066e070d9a8c4803f8bed3f18b Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 4 Apr 2025 22:57:44 +0200 Subject: [PATCH 2/3] ci: remove trailing spaces --- .github/workflows/compat.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/compat.yml b/.github/workflows/compat.yml index b2bea97..3b09cef 100644 --- a/.github/workflows/compat.yml +++ b/.github/workflows/compat.yml @@ -202,7 +202,7 @@ jobs: steps: - name: List Annotations uses: actions/github-script@v7 - + with: script: | let runs = await github.rest.checks.listForRef({ @@ -222,7 +222,7 @@ jobs: repo: context.repo.repo, check_run_id: result.id }); - + run.data.forEach(data => { annotations.data.push({ run: result.name, @@ -232,7 +232,7 @@ jobs: } // Remove duplicate items. - annotations.data = annotations.data.filter((value, index, self) => + annotations.data = annotations.data.filter((value, index, self) => self.findIndex(v => v.annotation.message === value.annotation.message) === index); let fs = require('fs'); @@ -242,4 +242,4 @@ jobs: uses: actions/upload-artifact@v4 with: name: comment - path: annotations.json \ No newline at end of file + path: annotations.json From ad61338bb24eda94a9ffc8f497fa78161bec429f Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Fri, 4 Apr 2025 22:57:13 +0200 Subject: [PATCH 3/3] ci: use github for gnulib --- .github/workflows/compat.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/compat.yml b/.github/workflows/compat.yml index 3b09cef..826e64b 100644 --- a/.github/workflows/compat.yml +++ b/.github/workflows/compat.yml @@ -20,7 +20,15 @@ jobs: repository: gnu-mirror-unofficial/findutils path: findutils.gnu ref: 5768a03ddfb5e18b1682e339d6cdd24ff721c510 - submodules: true + submodules: false + + - name: Override submodule URL and initialize submodules + # Use github instead of upstream git server + run: | + git submodule sync --recursive + git config submodule.gnulib.url https://github.com/coreutils/gnulib.git + git submodule update --init --recursive --depth 1 + working-directory: findutils.gnu - name: Install `rust` toolchain run: | ## Install `rust` toolchain