Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .config/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@
"pull-request-title-pattern": "release: `${component}` v${version}",
"pull-request-footer": "This release was generated with [Release Please](https://github.com/googleapis/release-please).",
"packages": {
"crates/git-forge": {}
"crates/git-forge": {},
"crates/forge-benchmarks": {
"publish": false,
"skip-github-release": true
}
},
"plugins": [{ "type": "sentence-case" }, { "type": "cargo-workspace" }],
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
Expand Down
3 changes: 2 additions & 1 deletion .config/release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"crates/git-forge": "0.0.0"
"crates/git-forge": "0.0.0",
"crates/forge-benchmarks": "0.0.0"
}
20 changes: 17 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
cache: true
toolchain: stable
- name: Package crates
run: cargo package --workspace
run: cargo package --workspace --exclude forge-benchmarks
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
Expand All @@ -57,7 +57,21 @@ jobs:
IS_PRERELEASE: ${{ github.event.release.prerelease }}
run: |
if [ "$IS_PRERELEASE" = "true" ]; then
cargo publish --workspace --dry-run
cargo publish --workspace --exclude forge-benchmarks --dry-run
else
cargo publish --workspace --token "$CARGO_REGISTRY_TOKEN"
cargo publish --workspace --exclude forge-benchmarks --token "$CARGO_REGISTRY_TOKEN"
fi

benchmarks:
name: Benchmark smoke test
needs: check-tag
if: needs.check-tag.outputs.should-publish == 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
toolchain: stable
- name: Run benchmarks (test mode)
run: cargo bench --package forge-benchmarks -- --test
Loading