From ab868aee504f474c729e6eb2e63e15e627054690 Mon Sep 17 00:00:00 2001 From: Xiliang Chen <xlchen1291@gmail.com> Date: Tue, 12 Nov 2019 08:53:21 +0800 Subject: [PATCH] fix check with latest substrate (#24) * fix check with latest substrate * update nigthly version * trying to fix CI * trying to fix ci * fix * fix --- .github/workflows/test.yml | 22 ++++++++++++++++++++-- Makefile | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 57b2c74..0124c64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,17 +13,35 @@ jobs: runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.toml') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.toml') }} - name: Install toolchain uses: actions-rs/toolchain@v1 with: profile: minimal - toolchain: nightly-2019-08-19 + toolchain: nightly-2019-11-08 components: rustfmt target: wasm32-unknown-unknown default: true + - name: Install Wasm toolchain + run: rustup target add wasm32-unknown-unknown - name: Check format run: make dev-format-check - - name: Check with no_std + - name: Check for Wasm run: make dev-check - name: Run tests run: make dev-test + diff --git a/Makefile b/Makefile index 0165665..53578b4 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ check: githooks - ./scripts/run.sh check --no-default-features + ./scripts/run.sh check --no-default-features --target=wasm32-unknown-unknown check-tests: githooks ./scripts/run.sh check --tests -- GitLab