0.2.1 #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: denolib/setup-deno@master | |
with: | |
deno-version: 1.12.2 | |
- name: Format Check | |
run: deno fmt --check --ignore=swc_wasm | |
swc-deno-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: denolib/setup-deno@master | |
with: | |
deno-version: 1.23.0 | |
- uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: nightly | |
- name: Install wasm32-unknown-unknown target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Install wasm-bindgen | |
run: cargo install --version 0.2.72 wasm-bindgen-cli | |
- name: Cache Cargo home | |
uses: actions/cache@v2 | |
with: | |
# See https://doc.rust-lang.org/cargo/guide/cargo-home.html#caching-the-cargo-home-in-ci | |
path: | | |
~/.cargo/registry/index | |
~/.cargo/registry/cache | |
~/.cargo/git/db | |
key: f-cargo-home-${{ matrix.os }}-${{ hashFiles('Cargo.lock') }} | |
- name: Cache build output | |
uses: actions/cache@03e00da99d75a2204924908e1cca7902cafce66b | |
with: | |
path: target | |
key: | | |
f-cargo-target-${{ matrix.os }}-${{ matrix.profile }}- | |
- name: Build | |
run: deno task build | |
- name: Test | |
run: deno task test | |