Skip to content

Commit

Permalink
[CI] Rework Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akru committed Jun 7, 2024
1 parent ce0c6e1 commit ad6e779
Show file tree
Hide file tree
Showing 9 changed files with 429 additions and 447 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/base_checks.yaml
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
Loading

0 comments on commit ad6e779

Please sign in to comment.