Skip to content

Commit

Permalink
tried wasm action
Browse files Browse the repository at this point in the history
  • Loading branch information
grazder committed Nov 13, 2023
1 parent c57c250 commit d815f91
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build_wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build WASM Package

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
env:
RUST_LOG: info
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
target: ${{ matrix.target }}

# https://rustwasm.github.io/wasm-pack/installer/
- name: Install wasm-pack
run:
"curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh"

- name: Build wasm package
run:
"wasm-pack build libDF --target no-modules --features wasm"

0 comments on commit d815f91

Please sign in to comment.