Skip to content

Commit

Permalink
fix workflows check
Browse files Browse the repository at this point in the history
  • Loading branch information
mutobui committed Oct 4, 2023
1 parent 9998277 commit 484e094
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,17 @@
name: Check Set-Up & Build

# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [master, dev]
pull_request:
branches: [master, dev]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
check:
# The type of runner that the job will run on
runs-on: ubuntu-22.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

- name: Install linux dependencies
Expand All @@ -30,18 +22,17 @@ jobs:
rustup update stable --no-self-update
rustup target add wasm32-unknown-unknown
# Rust cache
- uses: Swatinem/rust-cache@v2

- name: Unit-Test
run: |
cargo test --release
run: cargo test --release

- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo check --release
run: cargo check --release

- name: Check Build for Benchmarking
run: >
pushd node &&
run: |
mkdir node # Create the "node" directory
pushd node
cargo check --features=runtime-benchmarks --release
popd # Return to the previous directory

0 comments on commit 484e094

Please sign in to comment.