Skip to content

Commit

Permalink
disable wasi tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thomwiggers committed Jan 19, 2025
1 parent 0c07fa8 commit 1b41b2b
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,47 +47,47 @@ jobs:
- name: run Cargo clippy
run: cargo clippy -- -D warnings -A deprecated

wasi:
name: wasi
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- stable
- beta
- nightly
env:
# 20 MiB stack
RUST_MIN_STACK: 20971520
steps:
- uses: actions/checkout@v4
with:
submodules: true
# wasi:
# name: wasi
# runs-on: ubuntu-latest
# strategy:
# matrix:
# rust:
# - stable
# - beta
# - nightly
# env:
# # 20 MiB stack
# RUST_MIN_STACK: 20971520
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true

- name: Install Rust
run: |
rustup set auto-self-update disable
rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
rustup default ${{ matrix.rust }}
echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
echo RUST_BACKTRACE=1 >> $GITHUB_ENV
# - name: Install Rust
# run: |
# rustup set auto-self-update disable
# rustup toolchain install ${{ matrix.rust }} --profile minimal --component rustfmt clippy
# rustup default ${{ matrix.rust }}
# echo CARGO_TERM_COLOR=always >> $GITHUB_ENV
# echo CARGO_INCREMENTAL=0 >> $GITHUB_ENV
# echo RUST_BACKTRACE=1 >> $GITHUB_ENV

- 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
# - 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 :

0 comments on commit 1b41b2b

Please sign in to comment.