Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
jsonrpsee
Commits
d48b6458
Commit
d48b6458
authored
Oct 05, 2022
by
Niklas Adolfsson
Browse files
get gitlab gha working
parent
dd79f725
Changes
1
Hide whitespace changes
Inline
Side-by-side
.github/workflows/benchmarks_gitlab.yml
View file @
d48b6458
...
@@ -2,7 +2,7 @@ name: Benchmarks gitlab
...
@@ -2,7 +2,7 @@ name: Benchmarks gitlab
on
:
on
:
schedule
:
schedule
:
-
cron
:
"
0
1
0
*
*
*"
-
cron
:
"
0
1
3
*
*
*"
jobs
:
jobs
:
bench
:
bench
:
...
@@ -13,6 +13,7 @@ jobs:
...
@@ -13,6 +13,7 @@ jobs:
-
name
:
Checkout Sources
-
name
:
Checkout Sources
uses
:
actions/checkout@v3.1.0
uses
:
actions/checkout@v3.1.0
with
:
with
:
fetch-depth
:
0
ref
:
"
gh-pages"
ref
:
"
gh-pages"
-
name
:
Install Rust nightly toolchain
-
name
:
Install Rust nightly toolchain
...
@@ -22,20 +23,32 @@ jobs:
...
@@ -22,20 +23,32 @@ jobs:
toolchain
:
nightly
toolchain
:
nightly
override
:
true
override
:
true
-
name
:
Set bench file
-
name
:
Rust Cache
uses
:
Swatinem/rust-cache@v2.0.0
-
name
:
Show current working dir
id
:
step_one
id
:
step_one
run
:
|
run
:
|
echo "bench_file=bench/$(date "+%d-%m-%Y")/output.txt" >> $GITHUB_ENV
echo $(pwd)
-
name
:
Copy bench results
id
:
step_two
run
:
|
cp bench/$(date "+%d-%m-%Y")/output.txt output.txt
-
name
:
Show current workdir
id
:
step_three
run
:
|
git checkout master
-
name
:
Store benchmark result
-
name
:
Store benchmark result
uses
:
rhysd/github-action-benchmark@v1
uses
:
rhysd/github-action-benchmark@v1
with
:
with
:
tool
:
"
cargo
"
tool
:
'
cargo
'
output-file-path
:
"
${{
env.bench_file
}}
"
output-file-path
:
"
output.txt
"
benchmark-data-dir-path
:
"
bench/dev2"
benchmark-data-dir-path
:
"
bench/dev2"
fail-on-alert
:
true
fail-on-alert
:
true
github-token
:
${{ secrets.GITHUB_TOKEN }}
github-token
:
${{ secrets.GITHUB_TOKEN }}
comment-on-alert
:
true
comment-on-alert
:
true
alert-comment-cc-users
:
'
@niklasad1'
alert-comment-cc-users
:
'
@niklasad1'
auto-push
:
true
auto-push
:
true
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment