You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
YAML
60 lines
1.5 KiB
YAML
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
|
|
|