From 1b72dcee232fd3f171ee0a9e6d40d56499eb38c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Mon, 15 Jul 2024 17:45:51 +0200 Subject: [PATCH 1/3] ci: replace codecov with TICS --- .github/workflows/{coverage.yml => tics.yml} | 21 ++++++++------------ 1 file changed, 8 insertions(+), 13 deletions(-) rename .github/workflows/{coverage.yml => tics.yml} (84%) diff --git a/.github/workflows/coverage.yml b/.github/workflows/tics.yml similarity index 84% rename from .github/workflows/coverage.yml rename to .github/workflows/tics.yml index de107a1a3f4..0926e6708ff 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/tics.yml @@ -1,15 +1,9 @@ -name: Coverage +name: TICS on: push: branches: - main - pull_request: - types: [opened, synchronize, reopened, ready_for_review] - -concurrency: - group: ${{ github.workflow }}-${{ github.event.number && format('pr{0}', github.event.number) || github.ref_name }} - cancel-in-progress: true jobs: Run: @@ -94,13 +88,14 @@ jobs: timeout-minutes: 10 run: cmake --build build --target coverage - - name: Send coverage report - uses: codecov/codecov-action@v4 + - name: Run TICS analysis + uses: tiobe/tics-github-action@v3 with: - token: ${{ secrets.CODECOV_TOKEN }} - directory: build - fail_ci_if_error: true - verbose: true + mode: qserver + project: mir + viewerUrl: https://canonical.tiobe.com/tiobeweb/TICS/api/cfg?name=default + ticsAuthToken: ${{ secrets.TICSAUTHTOKEN }} + installTics: true - if: ${{ failure() && runner.debug }} name: Setup tmate session From ee929cbfa5894ae332a30566e4679a89b802bd40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Mon, 15 Jul 2024 17:46:05 +0200 Subject: [PATCH 2/3] ci: fix coverage ccache max size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The default suffix is GiB… --- .github/workflows/tics.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tics.yml b/.github/workflows/tics.yml index 0926e6708ff..5efe60247f5 100644 --- a/.github/workflows/tics.yml +++ b/.github/workflows/tics.yml @@ -44,7 +44,7 @@ jobs: - name: Ensure ccache size run: | # a full build yielded 180M cache - echo "max_size = 250" > ${CCACHE_DIR}/ccache.conf + echo "max_size = 250M" > ${CCACHE_DIR}/ccache.conf - name: Install dependencies run: | From e7371768bef5e0a79360d46de0a50ec9a5a3d9fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Sawicz?= Date: Mon, 15 Jul 2024 19:48:41 +0200 Subject: [PATCH 3/3] ci: extend timeout in TICS --- .github/workflows/tics.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tics.yml b/.github/workflows/tics.yml index 5efe60247f5..d1d954fb33b 100644 --- a/.github/workflows/tics.yml +++ b/.github/workflows/tics.yml @@ -14,7 +14,7 @@ jobs: NEEDRESTART_SUSPEND: yes DEBIAN_FRONTEND: noninteractive - timeout-minutes: 60 + timeout-minutes: 180 steps: - name: Check out code uses: actions/checkout@v4