-
Notifications
You must be signed in to change notification settings - Fork 249
34 lines (33 loc) · 985 Bytes
/
coverage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Coverage
on:
push:
branches:
- master
pull_request:
env:
RUSTFLAGS: -D warnings
jobs:
coverage:
runs-on: ${{ matrix.platform }}
name: "${{ matrix.example }} - ${{ matrix.platform }}"
strategy:
matrix:
platform: [ubuntu-latest]
toolchain: [nightly-2024-05-01]
package: [cross-contract-calls, fungible-token]
steps:
- uses: actions/checkout@v3
- name: "${{ matrix.toolchain }} with rustfmt, and wasm32"
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
- name: Rust version
run: rustc --version --verbose
- name: Install wasmcov
run: cargo +${{ matrix.toolchain }} install wasmcov
- name: Build
env:
RUSTFLAGS: '-C link-arg=-s '
run: cargo +${{ matrix.toolchain }} wasmcov build -- --all --target wasm32-unknown-unknown --release