Skip to content

Commit 7cb9e96

Browse files
tottoto0xE282B0
authored andcommitted
chore(ci): Update to actions/checkout@v4 (hyperium#3308)
Signed-off-by: Sven Pfennig <[email protected]>
1 parent 151e39d commit 7cb9e96

File tree

2 files changed

+62
-8
lines changed

2 files changed

+62
-8
lines changed

.github/workflows/CI.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636

3737
- name: Install Rust
3838
uses: dtolnay/rust-toolchain@stable
@@ -74,7 +74,7 @@ jobs:
7474

7575
steps:
7676
- name: Checkout
77-
uses: actions/checkout@v3
77+
uses: actions/checkout@v4
7878

7979
- name: Install Rust (${{ matrix.rust }})
8080
uses: dtolnay/rust-toolchain@master
@@ -96,7 +96,7 @@ jobs:
9696

9797
steps:
9898
- name: Checkout
99-
uses: actions/checkout@v3
99+
uses: actions/checkout@v4
100100

101101
- name: Get MSRV from package metadata
102102
id: msrv
@@ -117,7 +117,7 @@ jobs:
117117

118118
steps:
119119
- name: Checkout
120-
uses: actions/checkout@v3
120+
uses: actions/checkout@v4
121121

122122
- name: Install Rust
123123
uses: dtolnay/rust-toolchain@nightly
@@ -134,7 +134,7 @@ jobs:
134134
runs-on: ubuntu-latest
135135
steps:
136136
- name: Checkout
137-
uses: actions/checkout@v3
137+
uses: actions/checkout@v4
138138

139139
- name: Install Rust
140140
uses: dtolnay/rust-toolchain@nightly
@@ -151,7 +151,7 @@ jobs:
151151
runs-on: ubuntu-latest
152152
steps:
153153
- name: Checkout
154-
uses: actions/checkout@v3
154+
uses: actions/checkout@v4
155155

156156
- name: Install Rust
157157
uses: dtolnay/rust-toolchain@stable
@@ -174,7 +174,7 @@ jobs:
174174
runs-on: ubuntu-latest
175175
steps:
176176
- name: Checkout
177-
uses: actions/checkout@v3
177+
uses: actions/checkout@v4
178178

179179
- name: Install Rust
180180
uses: dtolnay/rust-toolchain@stable
@@ -203,7 +203,7 @@ jobs:
203203
runs-on: ubuntu-latest
204204
steps:
205205
- name: Checkout
206-
uses: actions/checkout@v3
206+
uses: actions/checkout@v4
207207

208208
- name: Install Rust
209209
uses: dtolnay/rust-toolchain@nightly

.github/workflows/bench.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Benchmark
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
jobs:
8+
benchmark:
9+
name: Benchmark
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
bench:
14+
#- connect
15+
#- end_to_end
16+
#- pipeline
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install Rust
21+
uses: dtolnay/rust-toolchain@nightly
22+
23+
# Run benchmark and stores the output to a file
24+
- name: Run benchmark
25+
run: cargo bench --features full --bench ${{ matrix.bench }} | tee output.txt
26+
27+
# Download previous benchmark result from cache (if exists)
28+
- name: Download previous benchmark data
29+
uses: actions/cache@v3
30+
with:
31+
path: ./cache
32+
key: ${{ runner.os }}-benchmark
33+
34+
# Run `github-action-benchmark` action
35+
- name: Store benchmark result
36+
uses: seanmonstar/github-action-benchmark@v1-patch-1
37+
with:
38+
name: ${{ matrix.bench }}
39+
# What benchmark tool the output.txt came from
40+
tool: 'cargo'
41+
# Where the output from the benchmark tool is stored
42+
output-file-path: output.txt
43+
# # Where the previous data file is stored
44+
# external-data-json-path: ./cache/benchmark-data.json
45+
# Workflow will fail when an alert happens
46+
fail-on-alert: true
47+
# GitHub API token to make a commit comment
48+
github-token: ${{ secrets.GITHUB_TOKEN }}
49+
# Enable alert commit comment
50+
comment-on-alert: true
51+
#alert-comment-cc-users: '@seanmonstar'
52+
auto-push: true
53+
54+
# Upload the updated cache file for the next job by actions/cache

0 commit comments

Comments
 (0)