From 047847fcac865b637f456cbc5d98673f1851d5c6 Mon Sep 17 00:00:00 2001 From: Jacob Rothstein Date: Thu, 13 Aug 2020 21:33:37 -0700 Subject: [PATCH 1/3] run ci on wasm32-unknown-unknown --- .github/workflows/ci.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a4f85ea2a..2489e70b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -160,6 +160,26 @@ jobs: - name: test run: cross test --all --features unstable --target ${{ matrix.target }} + check_wasm: + name: Check wasm targets + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@master + + - name: Install nightly with wasm32-unknown-unknown + uses: actions-rs/toolchain@v1 + with: + toolchain: nightly + target: wasm32-unknown-unknown + override: true + + - name: check + uses: actions-rs/cargo@v1 + with: + command: check + args: --target wasm32-unknown-unknown + check_fmt_and_docs: name: Checking fmt and docs runs-on: ubuntu-latest From 53429502331926f130dcbe30f63344d6457c895c Mon Sep 17 00:00:00 2001 From: Jacob Rothstein Date: Mon, 24 Aug 2020 08:43:00 -0700 Subject: [PATCH 2/3] use cargo cache and matrix rust --- .github/workflows/ci.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2489e70b4..708b596e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -163,14 +163,23 @@ jobs: check_wasm: name: Check wasm targets runs-on: ubuntu-latest + strategy: + matrix: + rust: [nightly, beta, stable] + + - name: Cache cargo registry + uses: actions/cache@v2 + with: + path: ~/.cargo/registry + key: wasm32-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }} steps: - uses: actions/checkout@master - - name: Install nightly with wasm32-unknown-unknown + - name: Install rust with wasm32-unknown-unknown uses: actions-rs/toolchain@v1 with: - toolchain: nightly + toolchain: ${{ matrix.rust }} target: wasm32-unknown-unknown override: true From 8afc6a71d595c7b2e43a7355a591d17e6b6a530a Mon Sep 17 00:00:00 2001 From: Jacob Rothstein Date: Mon, 24 Aug 2020 08:47:08 -0700 Subject: [PATCH 3/3] fix yaml format --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 708b596e7..c83e2f480 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -167,12 +167,6 @@ jobs: matrix: rust: [nightly, beta, stable] - - name: Cache cargo registry - uses: actions/cache@v2 - with: - path: ~/.cargo/registry - key: wasm32-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }} - steps: - uses: actions/checkout@master @@ -183,6 +177,12 @@ jobs: target: wasm32-unknown-unknown override: true + - name: Cache cargo registry + uses: actions/cache@v2 + with: + path: ~/.cargo/registry + key: wasm32-${{ matrix.rust }}-cargo-registry-${{ hashFiles('**/Cargo.toml') }} + - name: check uses: actions-rs/cargo@v1 with: