File tree 3 files changed +41
-1
lines changed
3 files changed +41
-1
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,20 @@ jobs:
171
171
with :
172
172
command : upload
173
173
args : --non-interactive --skip-existing wheels-*/*
174
+
175
+ release-crate :
176
+ name : Release Crate
177
+ runs-on : ubuntu-latest
178
+ if : ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
179
+ permissions :
180
+ # Use to sign the release artifacts
181
+ id-token : write
182
+ steps :
183
+ - uses : actions/checkout@v4
184
+ - name : Install Rust
185
+ uses : actions-rs/toolchain@v1
186
+ with :
187
+ toolchain : stable
174
188
- name : Publish to crates.io
175
189
if : startsWith(github.ref, 'refs/tags/')
176
190
run : cargo publish --token ${{ secrets.CARGO_TOKEN }}
Original file line number Diff line number Diff line change
1
+ name : benchmark pull requests
2
+
3
+ on :
4
+ pull_request :
5
+
6
+ jobs :
7
+ runBenchmark :
8
+ name : run benchmark
9
+ runs-on : macos-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - name : Install Rust
13
+ uses : actions-rs/toolchain@v1
14
+ with :
15
+ toolchain : stable
16
+ - uses : boa-dev/criterion-compare-action@v3
17
+ with :
18
+ # The name of the branch to compare with. This default uses the branch which is being pulled against
19
+ branchName : ${{ github.base_ref }}
20
+ token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -11,11 +11,17 @@ repository = "https://github.com/JacobLinCool/tja-rs"
11
11
[[bin ]]
12
12
name = " tja"
13
13
path = " src/bin/tja.rs"
14
- required-features = [] # Binary works without any features
14
+ bench = false
15
+
16
+ [[bin ]]
17
+ name = " profile"
18
+ path = " src/bin/profile.rs"
19
+ bench = false
15
20
16
21
[lib ]
17
22
name = " tja"
18
23
crate-type = [" cdylib" , " rlib" ]
24
+ bench = false
19
25
20
26
[features ]
21
27
default = []
You can’t perform that action at this time.
0 commit comments