From 84d3ad536ac707cc817533100de173a3355fc43c Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 11:47:41 +0200 Subject: [PATCH 01/10] ci: add coverage badge via update-badges workflow Wire a post-CI `badges` job that publishes a live coverage badge to an orphan `badges` branch, and reference it from the README. The `csharp-ci` and `update-badges` reusable workflows are temporarily pinned to the `feat/coverage-badges` PR branch of peacefulstudio/github-actions so this can be tested end-to-end. Repoint both to `@v2` once that PR is merged and the v2 tag is advanced. --- .github/workflows/ci.yaml | 11 ++++++++++- README.md | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8f863d2..03a7d56 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ permissions: jobs: csharp-ci: - uses: peacefulstudio/github-actions/.github/workflows/csharp-ci.yaml@v2 + uses: peacefulstudio/github-actions/.github/workflows/csharp-ci.yaml@feat/coverage-badges with: dotnet-version: '10.0.x' build-matrix: >- @@ -23,6 +23,15 @@ jobs: {"name":"macos-arm64","runner":"macos-latest","coverage":false}, {"name":"macos-amd64","runner":"macos-15-intel","coverage":false}] + badges: + needs: csharp-ci + if: ${{ github.ref == 'refs/heads/main' }} + permissions: + contents: write + uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges + with: + coverage: ${{ needs.csharp-ci.outputs.coverage }} + jvm-helper-ci: uses: peacefulstudio/github-actions/.github/workflows/scala-ci.yaml@v2 with: diff --git a/README.md b/README.md index e888ccb..04eda82 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Daml C# Code Generator [![CI](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml/badge.svg)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![.NET](https://img.shields.io/badge/.NET-10.0-white.svg)](https://dotnet.microsoft.com/) From f209a0756f2e9d11a2e589239a56895276a0527a Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 11:54:17 +0200 Subject: [PATCH 02/10] ci: TEMP un-gate badges job for feature-branch end-to-end test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Revert before merge — restore main-only push trigger and gate. --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 03a7d56..0dff7b7 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [main, feat/coverage-badge] pull_request: permissions: @@ -25,7 +25,7 @@ jobs: badges: needs: csharp-ci - if: ${{ github.ref == 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/coverage-badge' }} permissions: contents: write uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges From 7e5eabfe175e5bd324a49e01ca2950adbac52a0b Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 11:57:16 +0200 Subject: [PATCH 03/10] Revert "ci: TEMP un-gate badges job for feature-branch end-to-end test" This reverts commit f209a0756f2e9d11a2e589239a56895276a0527a. --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0dff7b7..03a7d56 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main, feat/coverage-badge] + branches: [main] pull_request: permissions: @@ -25,7 +25,7 @@ jobs: badges: needs: csharp-ci - if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/coverage-badge' }} + if: ${{ github.ref == 'refs/heads/main' }} permissions: contents: write uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges From d1a0dd9a62402c4071dd343706d5e43e98649c42 Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 14:01:06 +0200 Subject: [PATCH 04/10] feat(badges): wire matrix + per-language coverage badges --- .github/workflows/ci.yaml | 32 +++++++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 03a7d56..1850cd0 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,23 +24,45 @@ jobs: {"name":"macos-amd64","runner":"macos-15-intel","coverage":false}] badges: - needs: csharp-ci - if: ${{ github.ref == 'refs/heads/main' }} + needs: [csharp-ci, jvm-helper-ci, assemble-badge-data] + if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} permissions: contents: write uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges with: - coverage: ${{ needs.csharp-ci.outputs.coverage }} + coverage-data: >- + [{"slug":"csharp","label":"coverage (C#)","percent":"${{ needs.csharp-ci.outputs.coverage }}"}, + {"slug":"scala","label":"coverage (Scala)","percent":"${{ needs.jvm-helper-ci.outputs.coverage }}"}] + matrix-data: ${{ needs.assemble-badge-data.outputs.matrix-data }} jvm-helper-ci: - uses: peacefulstudio/github-actions/.github/workflows/scala-ci.yaml@v2 + uses: peacefulstudio/github-actions/.github/workflows/scala-ci.yaml@feat/coverage-badges with: working-directory: jvm-helper # No windows-arm64 shard: Maven Central publishes no windows-aarch_64 protoc # binary at any version, so sbt-protoc cannot resolve a compiler there. build-matrix: >- - [{"name":"ubuntu-amd64","runner":"ubuntu-latest","coverage":false}, + [{"name":"ubuntu-amd64","runner":"ubuntu-latest","coverage":true}, {"name":"ubuntu-arm64","runner":"ubuntu-24.04-arm","coverage":false}, {"name":"windows-amd64","runner":"windows-latest","coverage":false}, {"name":"macos-arm64","runner":"macos-latest","coverage":false}, {"name":"macos-amd64","runner":"macos-15-intel","coverage":false}] + + assemble-badge-data: + needs: [csharp-ci, jvm-helper-ci] + if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} + runs-on: ubuntu-latest + outputs: + matrix-data: ${{ steps.merge.outputs.matrix-data }} + steps: + - name: Merge matrix-status by language + id: merge + env: + CSHARP_STATUS: ${{ needs.csharp-ci.outputs.matrix-status }} + SCALA_STATUS: ${{ needs.jvm-helper-ci.outputs.matrix-status }} + run: | + set -euo pipefail + csharp="$(jq -c '[.[] + {lang:"csharp"}]' <<<"${CSHARP_STATUS:-[]}")" + scala="$(jq -c '[.[] + {lang:"scala"}]' <<<"${SCALA_STATUS:-[]}")" + merged="$(jq -cn --argjson a "$csharp" --argjson b "$scala" '$a + $b')" + echo "matrix-data=$merged" >> "$GITHUB_OUTPUT" From 4243fa5c9473c53896ba9842d1c7f30c1314e447 Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 14:05:06 +0200 Subject: [PATCH 05/10] docs(readme): platform support, per-language coverage, version badges --- README.md | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 04eda82..500436d 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,40 @@ # Daml C# Code Generator [![CI](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml/badge.svg)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage-csharp.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![Release](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?label=latest%20stable)](https://github.com/peacefulstudio/daml-codegen-csharp/releases/latest) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![.NET](https://img.shields.io/badge/.NET-10.0-white.svg)](https://dotnet.microsoft.com/) Generates strongly-typed C# from Daml `.dar` archives so .NET applications can talk to a Canton/Daml ledger with full type safety. +## Platform Support + +CI builds and tests on every supported OS × architecture. Each badge reflects the latest `main` run. + +**C# (`Daml.Codegen.CSharp`)** + +[![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![windows arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-windows-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) + +**Scala/JVM helper** + +[![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) + +## Coverage + +[![coverage (C#)](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage-csharp.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +[![coverage (Scala)](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage-scala.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) + ## Status Active. Curated public releases land here; ongoing development happens @@ -99,6 +126,9 @@ var submission = CommandsSubmission.Single(createCmd) ## NuGet Packages +[![latest stable](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?label=latest%20stable)](https://github.com/peacefulstudio/daml-codegen-csharp/releases/latest) +[![latest](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?include_prereleases&label=latest)](https://github.com/peacefulstudio/daml-codegen-csharp/releases) + The following packages are published to NuGet.org, starting with `0.1.8-preview.1` (earlier versions in the CHANGELOG were internal milestones and never reached a public feed): From c3b28393c1aebef8e71d382e470bcda7f20740d0 Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 14:34:53 +0200 Subject: [PATCH 06/10] ci: TEMP un-gate badges job for feature-branch end-to-end test --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1850cd0..dc8b013 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [main, feat/coverage-badge] pull_request: permissions: @@ -25,7 +25,7 @@ jobs: badges: needs: [csharp-ci, jvm-helper-ci, assemble-badge-data] - if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} + if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/coverage-badge') && !cancelled() }} permissions: contents: write uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges @@ -50,7 +50,7 @@ jobs: assemble-badge-data: needs: [csharp-ci, jvm-helper-ci] - if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} + if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/coverage-badge') && !cancelled() }} runs-on: ubuntu-latest outputs: matrix-data: ${{ steps.merge.outputs.matrix-data }} From bc4b371d678eba20bcf1eac87bf327575390eaf7 Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 15:03:21 +0200 Subject: [PATCH 07/10] test(badges): pass artifact-prefix and lay out platform badges as grids - Pass `artifact-prefix: csharp`/`scala` to the reusable CI workflows so the two languages no longer collide on run-level artifact names. - Render Platform Support as 3-column grids (Ubuntu/Windows/macOS, amd64 over arm64); Scala's Windows-arm64 cell stays empty. - Surface the latest-preview release badge in the top block. --- .github/workflows/ci.yaml | 2 ++ README.md | 20 +++++++++----------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index dc8b013..81cb75f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -15,6 +15,7 @@ jobs: uses: peacefulstudio/github-actions/.github/workflows/csharp-ci.yaml@feat/coverage-badges with: dotnet-version: '10.0.x' + artifact-prefix: csharp build-matrix: >- [{"name":"ubuntu-amd64","runner":"ubuntu-latest","coverage":true}, {"name":"ubuntu-arm64","runner":"ubuntu-24.04-arm","coverage":false}, @@ -39,6 +40,7 @@ jobs: uses: peacefulstudio/github-actions/.github/workflows/scala-ci.yaml@feat/coverage-badges with: working-directory: jvm-helper + artifact-prefix: scala # No windows-arm64 shard: Maven Central publishes no windows-aarch_64 protoc # binary at any version, so sbt-protoc cannot resolve a compiler there. build-matrix: >- diff --git a/README.md b/README.md index 500436d..85e879c 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,7 @@ [![CI](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml/badge.svg)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) [![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage-csharp.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) [![Release](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?label=latest%20stable)](https://github.com/peacefulstudio/daml-codegen-csharp/releases/latest) +[![latest preview](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?include_prereleases&label=latest%20preview)](https://github.com/peacefulstudio/daml-codegen-csharp/releases) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![.NET](https://img.shields.io/badge/.NET-10.0-white.svg)](https://dotnet.microsoft.com/) @@ -15,20 +16,17 @@ CI builds and tests on every supported OS × architecture. Each badge reflects t **C# (`Daml.Codegen.CSharp`)** -[![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![windows arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-windows-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +| Ubuntu | Windows | macOS | +|---|---|---| +| [![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | +| [![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![windows arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-windows-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-csharp-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | **Scala/JVM helper** -[![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) +| Ubuntu | Windows | macOS | +|---|---|---| +| [![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | +| [![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | | [![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | ## Coverage From 9bda7629c7c49f117a2017f7be83ca7c803c9daa Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 15:15:24 +0200 Subject: [PATCH 08/10] docs(readme): trim top coverage badge, arch-only matrix cells, mark win-arm64 unsupported - Drop the duplicate coverage badge from the top block (the dedicated Coverage section already shows it). - Fill the empty Scala Windows/arm64 cell with a grey "not supported" badge. --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 85e879c..2a49ad6 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ # Daml C# Code Generator [![CI](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml/badge.svg)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) -[![Coverage](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/coverage-csharp.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) [![Release](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?label=latest%20stable)](https://github.com/peacefulstudio/daml-codegen-csharp/releases/latest) [![latest preview](https://img.shields.io/github/v/release/peacefulstudio/daml-codegen-csharp?include_prereleases&label=latest%20preview)](https://github.com/peacefulstudio/daml-codegen-csharp/releases) [![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) @@ -26,7 +25,7 @@ CI builds and tests on every supported OS × architecture. Each badge reflects t | Ubuntu | Windows | macOS | |---|---|---| | [![ubuntu amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![windows amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-windows-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | [![macos amd64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-amd64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | -| [![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | | [![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | +| [![ubuntu arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-ubuntu-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | ![windows arm64 not supported](https://img.shields.io/badge/arm64-not%20supported-lightgrey?logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZmlsbD0id2hpdGUiIGQ9Ik0wIDMuNDQ5TDkuNzUgMi4xdjkuNDUxSDBtMTAuOTQ5LTkuNjAyTDI0IDB2MTEuNEgxMC45NDlNMCAxMi42aDkuNzV2OS40NTFMMCAyMC42OTlNMTAuOTQ5IDEyLjZIMjRWMjRsLTEyLjktMS44MDEiLz48L3N2Zz4=&logoColor=white) | [![macos arm64](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/peacefulstudio/daml-codegen-csharp/badges/ci-scala-macos-arm64.json)](https://github.com/peacefulstudio/daml-codegen-csharp/actions/workflows/ci.yaml) | ## Coverage From edbba7856920a2d31b2c83b061c962a82d8b0c70 Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 15:34:35 +0200 Subject: [PATCH 09/10] ci: restore main-only gating for badge jobs Reverts the temporary feat/coverage-badge un-gate used for live badge testing; badge writes are main-gated again ahead of merge. --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 81cb75f..eca2505 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main, feat/coverage-badge] + branches: [main] pull_request: permissions: @@ -26,7 +26,7 @@ jobs: badges: needs: [csharp-ci, jvm-helper-ci, assemble-badge-data] - if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/coverage-badge') && !cancelled() }} + if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} permissions: contents: write uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges @@ -52,7 +52,7 @@ jobs: assemble-badge-data: needs: [csharp-ci, jvm-helper-ci] - if: ${{ (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/feat/coverage-badge') && !cancelled() }} + if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} runs-on: ubuntu-latest outputs: matrix-data: ${{ steps.merge.outputs.matrix-data }} From f4ec9bceec7ffa0fd70a94990e58af1185816d92 Mon Sep 17 00:00:00 2001 From: monsieurleberre Date: Sun, 14 Jun 2026 15:57:36 +0200 Subject: [PATCH 10/10] ci: consume github-actions reusable workflows at @v2 The badges feature shipped in github-actions v2.2.0, so pin back to the floating @v2 tag instead of the @feat/coverage-badges branch. --- .github/workflows/ci.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index eca2505..d1dbf96 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ permissions: jobs: csharp-ci: - uses: peacefulstudio/github-actions/.github/workflows/csharp-ci.yaml@feat/coverage-badges + uses: peacefulstudio/github-actions/.github/workflows/csharp-ci.yaml@v2 with: dotnet-version: '10.0.x' artifact-prefix: csharp @@ -29,7 +29,7 @@ jobs: if: ${{ github.ref == 'refs/heads/main' && !cancelled() }} permissions: contents: write - uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@feat/coverage-badges + uses: peacefulstudio/github-actions/.github/workflows/update-badges.yaml@v2 with: coverage-data: >- [{"slug":"csharp","label":"coverage (C#)","percent":"${{ needs.csharp-ci.outputs.coverage }}"}, @@ -37,7 +37,7 @@ jobs: matrix-data: ${{ needs.assemble-badge-data.outputs.matrix-data }} jvm-helper-ci: - uses: peacefulstudio/github-actions/.github/workflows/scala-ci.yaml@feat/coverage-badges + uses: peacefulstudio/github-actions/.github/workflows/scala-ci.yaml@v2 with: working-directory: jvm-helper artifact-prefix: scala