Skip to content

Commit f5e89fe

Browse files
committed
CI validates WASM support
For now failure is allowed as no work was done, but this should confirm the crate can at least be compiled to that target.
1 parent 109f434 commit f5e89fe

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/wasm.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: WASM
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
tags-ignore: [ '*' ]
7+
paths:
8+
- '.github/**'
9+
- 'git-pack/**'
10+
- '*.toml'
11+
pull_request:
12+
branches: [ main ]
13+
paths:
14+
- '.github/**'
15+
- 'git-pack/**'
16+
- '*.toml'
17+
18+
jobs:
19+
compile-to-wasm:
20+
runs-on: ubuntu-latest
21+
continue-on-error: true
22+
steps:
23+
- uses: actions/checkout@v3
24+
- uses: actions-rs/toolchain@v1
25+
with:
26+
toolchain: stable
27+
target: wasm32-unknown-unknown
28+
override: true
29+
profile: minimal
30+
- uses: Swatinem/rust-cache@v2
31+
- run: cargo check -p git-pack --target wasm32-unknown-unknown

0 commit comments

Comments
 (0)