Update schemes #105
Workflow file for this run
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
on: | |
push: | |
pull_request: | |
name: Continuous integration | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
env: | |
CARGO_TERM_COLOR: always | |
# 20 MiB stack | |
RUST_MIN_STACK: 20971520 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: ${{ matrix.rust }} | |
override: true | |
components: rustfmt, clippy | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: --features cryptographically-insecure | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: --features cryptographically-insecure | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --features serialization,cryptographically-insecure | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings -A deprecated | |
wasi: | |
name: wasi | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
env: | |
CARGO_TERM_COLOR: always | |
# 20 MiB stack | |
RUST_MIN_STACK: 20971520 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: Install WASI | |
run: cargo install cargo-wasi | |
- name: Install wasmtime | |
run: curl https://wasmtime.dev/install.sh -sSf | bash | |
- name: Install WASI SDK | |
run: | | |
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-12/wasi-sysroot-12.0.tar.gz | |
tar -xvzf wasi-sysroot-12.0.tar.gz | |
rm wasi-sysroot-12.0.tar.gz | |
- name: Run tests | |
run: | | |
export WASI_SDK_DIR="$(pwd)/wasi-sysroot" | |
export WASMTIME_HOME="$(pwd)/.wasmtime" | |
export PATH="$WASMTIME_HOME/bin:$PATH" | |
cargo wasi build --features cryptographically-insecure | |
#cargo wasi test -- --nocapture | |
# vim: set ft=yaml ts=2 sw=2 tw=0 et : |