Skip to content
Closed
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
2 changes: 2 additions & 0 deletions .github/actions/rust-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ runs:
- uses: Swatinem/rust-cache@v2
- name: Build
shell: bash
working-directory: async-profiler-agent
run: if [ "${{ inputs.toolchain }}" != stable ]; then rm -fv Cargo.lock; fi && cargo build --all-features --verbose
- name: Run tests
shell: bash
working-directory: async-profiler-agent
run: cargo test --all-features --verbose
2 changes: 2 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
- name: Run fmt check
id: cargoFmt
shell: bash
working-directory: async-profiler-agent
run: cargo fmt --all -- --check
clippy:
name: Cargo clippy
Expand All @@ -25,4 +26,5 @@ jobs:
- name: Run clippy check
id: cargoClippy
shell: bash
working-directory: async-profiler-agent
run: cargo clippy --workspace --all-features -- -D warnings
29 changes: 29 additions & 0 deletions .github/workflows/release-tmp.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Publish release

permissions:
pull-requests: write
contents: write

on:
pull_request:

jobs:
release-plz-release:
if: github.repository_owner == 'async-profiler'
name: Release-plz release
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5.102
working-directory: async-profiler-agent
with:
command: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: release-plz/action@v0.5.102
working-directory: async-profiler-agent
with:
command: release
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/target
/async-profiler-agent/target
4 changes: 1 addition & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,13 @@ There is a `.github/workflows/release.yml` workflow that will attempt to use a c
To update the `Cargo.toml` and changelog, use [conventional commits], and in a clean git repo, run the following commands:
```
cargo install release-plz
git checkout main && release-plz update && git commit -a
git checkout main && ( cd async-profiler-agent && release-plz update ) && git commit -a
```

Then make a new PR for the release and get it approved.

The automated release PR generation functionality is not used here.

This requires a crates.io token in GitHub secrets for the repo. Currently the "token" is literally the string `secret` but I will put a more realistic token once the repo is public.

[conventional commits]: https://www.conventionalcommits.org/en/v1.0.0/

## Code of Conduct
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Cargo.toml → async-profiler-agent/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = "0.1.1"
description = "Rust agent for async-profiler"
license = "Apache-2.0"
repository = "https://github.com/async-profiler/rust-agent"
readme = "README.md"
readme = "../README.md"
edition = "2021"

[dependencies]
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading