-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
429 additions
and
447 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Base checks | ||
on: | ||
push: | ||
branches: | ||
- '**' | ||
tags-ignore: | ||
- v[0-9]+.[0-9]+.[0-9]+* | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} | ||
|
||
jobs: | ||
compile-and-check: | ||
runs-on: [self-hosted, Linux, X64] | ||
steps: | ||
- name: Checkout the source code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install deps | ||
run: | | ||
sudo apt -y install protobuf-compiler pkg-config | ||
if ! command -v sccache; then | ||
cargo install sccache --locked | ||
fi | ||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | ||
echo "SCCACHE_CACHE_SIZE=100G" >> $GITHUB_ENV | ||
- name: Install & display rust toolchain | ||
run: rustup show | ||
|
||
- name: Check targets are installed correctly | ||
run: rustup target list --installed | ||
|
||
- name: Check all features compilation | ||
run: cargo check --verbose --features runtime-benchmarks --locked |
Oops, something went wrong.