mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-26 06:27:58 +00:00
Remove the bench-test-full-crypto-feature GHA & GitLab jobs (#10628)
* Remove the `bench-test-full-crypto-feature` job * Remove the relevant GHA job
This commit is contained in:
committed by
GitHub
parent
0071bd7bac
commit
bdd7a44bec
-75
@@ -1,75 +0,0 @@
|
||||
# Please do not tamper with this job, it's a part of benchmarking experiment.
|
||||
# However, you absolutely can copy it into another file and redo the last job in the pipeline.
|
||||
# Just make sure you won't introduce long queues to the GHA runner, we have just one at the moment.
|
||||
|
||||
name: bench GHA against GitLab
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
bench_gh:
|
||||
runs-on: self-hosted
|
||||
env:
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUSTUP_HOME: /usr/local/rustup
|
||||
CARGO_HOME: /usr/local/cargo
|
||||
CC: clang
|
||||
CXX: clang
|
||||
|
||||
steps:
|
||||
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.9.1
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
|
||||
- name: Install dependencies
|
||||
# Template job, one can copy it to another pipeline.
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends time clang
|
||||
update-alternatives --install /usr/bin/cc cc /usr/bin/clang 100
|
||||
|
||||
- name: Install Rust
|
||||
# Template job, one can copy it to another pipeline.
|
||||
# Referance code https://github.com/paritytech/scripts/blob/master/dockerfiles/base-ci-linux/Dockerfile
|
||||
# Better keep Rust versions here in sync with the CI image, otherwise the results will conflict.
|
||||
run: |
|
||||
curl -L "https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init" -o rustup-init
|
||||
chmod +x rustup-init
|
||||
./rustup-init -y --no-modify-path --profile minimal --default-toolchain stable
|
||||
rm rustup-init
|
||||
# add rustup tp PATH so it's usable right away
|
||||
echo "/usr/local/cargo/bin" >> $GITHUB_PATH
|
||||
source /usr/local/cargo/env
|
||||
chmod -R a+w ${RUSTUP_HOME} ${CARGO_HOME}
|
||||
# install nightly toolchain
|
||||
rustup toolchain install nightly-2021-11-08 --profile minimal --component rustfmt clippy
|
||||
# link the pinned toolchain to nightly
|
||||
ln -s /usr/local/rustup/toolchains/nightly-2021-11-08-x86_64-unknown-linux-gnu /usr/local/rustup/toolchains/nightly-x86_64-unknown-linux-gnu
|
||||
rustup target add wasm32-unknown-unknown
|
||||
rustup target add wasm32-unknown-unknown --toolchain nightly
|
||||
# show versions
|
||||
rustup show
|
||||
cargo --version
|
||||
# remove clutter from the installations
|
||||
rm -rf "${CARGO_HOME}/registry" "${CARGO_HOME}/git"
|
||||
|
||||
- name: Checkout sources
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: bench-GHA-test-full-crypto-feature
|
||||
# GitHub env variables reference: https://docs.github.com/en/actions/learn-github-actions/environment-variables
|
||||
# The important part of the experiment is the line with `curl`: it sends the job's timing to Prometheus.
|
||||
run: |
|
||||
START_TIME=`date '+%s'`
|
||||
cd primitives/core/
|
||||
time cargo +nightly build --verbose --no-default-features --features full_crypto
|
||||
cd ../application-crypto
|
||||
time cargo +nightly build --verbose --no-default-features --features full_crypto
|
||||
END_TIME=`date '+%s'`
|
||||
TOTAL_TIME=`expr $END_TIME - $START_TIME`
|
||||
# please remove this line if you want to play with GHA runner.
|
||||
curl -d "parity_github_job_time{project=\"$GITHUB_REPOSITORY\",job=\"$GITHUB_WORKFLOW\",runner=\"github\"} $TOTAL_TIME" -X POST http://vm-longterm.parity-build.parity.io/api/v1/import/prometheus
|
||||
Reference in New Issue
Block a user