Skip to content

update rust edition #111

update rust edition

update rust edition #111

Workflow file for this run

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 :