Skip to content

Add build scripts

Add build scripts #8

Workflow file for this run

# This file is autogenerated by maturin v1.3.1
# To update, run
#
# maturin generate-ci github
#
name: WebAssembly
on:
push:
branches:
- main
- master
- github-action
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Dependencies
run: |
apt update -y && apt-get install clang -y
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | bash -s -- -y --profile=minimal --target=wasm32-unknown-unknown
npm install -g wasm-pack
- name: Build
run: |
wasm-pack build --target=web --release --out-dir=/aisdb_web/map/pkg