Skip to content

Commit b837163

Browse files
author
Ariel Ben-Yehuda
committed
temp
1 parent f532aae commit b837163

File tree

23 files changed

+37
-4
lines changed

23 files changed

+37
-4
lines changed

.github/actions/rust-build/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ runs:
1616
- uses: Swatinem/rust-cache@v2
1717
- name: Build
1818
shell: bash
19+
working-directory: async-profiler-agent
1920
run: if [ "${{ inputs.toolchain }}" != stable ]; then rm -fv Cargo.lock; fi && cargo build --all-features --verbose
2021
- name: Run tests
2122
shell: bash
23+
working-directory: async-profiler-agent
2224
run: cargo test --all-features --verbose

.github/workflows/format.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
- name: Run fmt check
1515
id: cargoFmt
1616
shell: bash
17+
working-directory: async-profiler-agent
1718
run: cargo fmt --all -- --check
1819
clippy:
1920
name: Cargo clippy
@@ -25,4 +26,5 @@ jobs:
2526
- name: Run clippy check
2627
id: cargoClippy
2728
shell: bash
29+
working-directory: async-profiler-agent
2830
run: cargo clippy --workspace --all-features -- -D warnings

.github/workflows/release-tmp.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish release
2+
3+
permissions:
4+
pull-requests: write
5+
contents: write
6+
7+
on:
8+
pull_request:
9+
10+
jobs:
11+
release-plz-release:
12+
if: github.repository_owner == 'async-profiler'
13+
name: Release-plz release
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
- name: Run release-plz
24+
uses: release-plz/action@v0.5.102
25+
working-directory: async-profiler-agent
26+
with:
27+
command: release
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: dtolnay/rust-toolchain@stable
2525
- name: Run release-plz
2626
uses: release-plz/action@v0.5.102
27+
working-directory: async-profiler-agent
2728
with:
2829
command: release
2930
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/target
2+
/async-profiler-agent/target

CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,13 @@ There is a `.github/workflows/release.yml` workflow that will attempt to use a c
5050
To update the `Cargo.toml` and changelog, use [conventional commits], and in a clean git repo, run the following commands:
5151
```
5252
cargo install release-plz
53-
git checkout main && release-plz update && git commit -a
53+
git checkout main && ( cd async-profiler-agent && release-plz update ) && git commit -a
5454
```
5555

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

5858
The automated release PR generation functionality is not used here.
5959

60-
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.
61-
6260
[conventional commits]: https://www.conventionalcommits.org/en/v1.0.0/
6361

6462
## Code of Conduct
File renamed without changes.

Cargo.toml renamed to async-profiler-agent/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ version = "0.1.1"
44
description = "Rust agent for async-profiler"
55
license = "Apache-2.0"
66
repository = "https://github.com/async-profiler/rust-agent"
7-
readme = "README.md"
7+
readme = "../README.md"
88
edition = "2021"
99

1010
[dependencies]

0 commit comments

Comments
 (0)