diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000..9bf5260 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,16 @@ +{ + "homepage": "https://github.com/fastfloat/fast_float", + "maintainers": [ + { + "email": "byvoid@byvoid.com", + "github": "BYVoid", + "name": "Carbo Kuo", + "github_user_id": 245270 + } + ], + "repository": [ + "github:fastfloat/fast_float" + ], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000..50ce5f2 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,20 @@ +matrix: + platform: + - debian10 + - ubuntu2004 + - ubuntu2204 + - macos + - macos_arm64 + - windows + bazel: + - 9.* + - 8.x + - 7.x + - 6.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - '@fast_float' diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000..9b00d13 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/v{VERSION}.tar.gz" +} diff --git a/.github/workflows/publish-to-bcr.yml b/.github/workflows/publish-to-bcr.yml new file mode 100644 index 0000000..1e9a1ef --- /dev/null +++ b/.github/workflows/publish-to-bcr.yml @@ -0,0 +1,26 @@ +name: Publish to BCR + +on: + release: + types: [published] + + # Allow manual triggering from GH UI + workflow_dispatch: + inputs: + tag_name: + description: 'Tag name to publish (e.g., v1.2.3)' + required: true + type: string + +permissions: + id-token: write + attestations: write + contents: write + +jobs: + publish: + uses: bazel-contrib/publish-to-bcr/.github/workflows/publish.yaml@v1.0.0 + with: + tag_name: ${{ github.event.release.tag_name || inputs.tag_name }} + secrets: + publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }}