Skip to content
Open
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
5 changes: 4 additions & 1 deletion .config/release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
"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-kiln": {}
"crates/git-kiln": {},
"crates/kiln-benchmarks": {
"publish": false
}
},
"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-kiln": "0.0.0"
"crates/git-kiln": "0.0.0",
"crates/kiln-benchmarks": "0.0.0"
}
35 changes: 31 additions & 4 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ jobs:
with:
cache: true
toolchain: stable
- name: Package crates
run: cargo package --workspace
- name: Package publishable crates
# kiln-benchmarks has publish = false and must be excluded from packaging
run: cargo package --package git-kiln
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
with:
Expand All @@ -57,7 +58,33 @@ jobs:
IS_PRERELEASE: ${{ github.event.release.prerelease }}
run: |
if [ "$IS_PRERELEASE" = "true" ]; then
cargo publish --workspace --dry-run
cargo publish --package git-kiln --dry-run
else
cargo publish --workspace --token "$CARGO_REGISTRY_TOKEN"
cargo publish --package git-kiln --token "$CARGO_REGISTRY_TOKEN"
fi

benchmarks:
name: Benchmarks
needs: check-tag
if: needs.check-tag.outputs.should-publish == 'true'
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
cache: true
toolchain: stable
- name: Install git (for git gc / pack-refs used in benchmarks)
run: sudo apt-get update && sudo apt-get install -y git
- name: Run benchmarks
run: |
cargo bench --package kiln-benchmarks -- --output-format bencher \
2>&1 | tee target/criterion/bench-output.txt
- name: Upload benchmark results
uses: actions/upload-artifact@v4
with:
name: benchmark-results
path: target/criterion/
retention-days: 90
Loading
Loading