Skip to content

CI

CI #573

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
schedule:
- cron: '50 4 * * *'
workflow_dispatch:
env:
rust_toolchain: stable
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v2
- name: Setup | Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.rust_toolchain }}
components: rustfmt, clippy
- name: Setup | Set toolchain
run: rustup default ${{ env.rust_toolchain }}
- name: Build | Fmt Check
run: cargo fmt -- --check
- name: Add wasm target
run: rustup target add wasm32-unknown-unknown
- name: Build | Clippy
run: cargo clippy --no-deps --target wasm32-unknown-unknown -- -Dwarnings
- name: Build | Compile / assets-prepare
run: cd edge-frame; cargo build --no-default-features --features assets-prepare
- name: Build | Compile / assets-serve
run: cd edge-frame; cargo build --no-default-features --features assets-serve
- name: Setup | Trunk
run: cargo install trunk
- name: Build | Trunk
run: cd kitchen-sink; trunk build