Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

Commit

Permalink
split trappist and stout runtimes with conditional build
Browse files Browse the repository at this point in the history
  • Loading branch information
kalaninja committed Jun 27, 2023
1 parent 35a8421 commit 277c5db
Show file tree
Hide file tree
Showing 12 changed files with 397 additions and 297 deletions.
48 changes: 40 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,12 @@ jobs:
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-release-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-release

- name: Check Build Trappist Runtime
- name: Check Build Trappist node
run: |
SKIP_WASM_BUILD=1 cargo check --release
cargo check -p trappist --release --locked
test:
test-trappist:
needs: lint
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -77,9 +76,42 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-debug
key: ${{ runner.os }}-cargo-debug-trappist-${{ hashFiles('**/Cargo.lock') }}

- name: Run tests
- name: Run Trappist tests
run: |
cargo test --features runtime-benchmarks --jobs 1
SKIP_WASM_BUILD=1 cargo test --workspace --exclude stout-runtime --no-default-features --features trappist/trappist-runtime,std,runtime-benchmarks --locked
test-stout:
needs: lint
runs-on: ubuntu-latest
steps:
# Tests with benchmarks require a lot of disk space
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: false
large-packages: false
swap-storage: false

- uses: actions/checkout@v3

- name: Setup worker
uses: "./.github/templates/setup-worker"

- name: Cache Build artefacts
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-debug-stout-${{ hashFiles('**/Cargo.lock') }}

- name: Run Stout tests
run: |
SKIP_WASM_BUILD=1 cargo test -p stout-runtime -p trappist --no-default-features --features=trappist/stout-runtime,std,runtime-benchmarks --locked
Loading

0 comments on commit 277c5db

Please sign in to comment.