Merge pull request #265 from str4d/wasm-ci

CI: Build zcash_proofs against WASM targets
This commit is contained in:
str4d 2020-08-08 04:14:01 +12:00 committed by GitHub
commit 18b1ce7401
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -85,6 +85,31 @@ jobs:
command: test
args: --verbose --release --all -- --ignored
build:
name: Build target ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-unknown-unknown
- wasm32-wasi
steps:
- uses: actions/checkout@v1
- uses: actions-rs/toolchain@v1
with:
toolchain: 1.40.0
override: true
- name: Add target
run: rustup target add ${{ matrix.target }}
- name: cargo fetch
uses: actions-rs/cargo@v1
with:
command: fetch
- name: Build zcash_proofs for target
working-directory: ./zcash_proofs
run: cargo build --verbose --no-default-features --target ${{ matrix.target }}
codecov:
name: Code coverage
runs-on: ubuntu-latest