CI #605
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: | |
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 | Toolchain | |
run: rustup default ${{ env.rust_toolchain }} | |
- name: Add wasm target | |
run: rustup target add wasm32-unknown-unknown | |
- name: Setup | Std | |
run: rustup component add rust-src --toolchain ${{ env.rust_toolchain }}-x86_64-unknown-linux-gnu | |
- name: Build | Fmt Check | |
run: cargo fmt -- --check | |
- name: Build | Clippy | |
run: cargo clippy --no-deps --target wasm32-unknown-unknown -- -Dwarnings | |
- name: Build | |
run: cargo build --target wasm32-unknown-unknown |