Skip to content

fix: exports (#55) #176

fix: exports (#55)

fix: exports (#55) #176

Workflow file for this run

name: CI
on:
push:
branches: [v1, main]
pull_request:
jobs:
build:
name: Build ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Install rust
uses: hecrj/setup-rust-action@v1
with:
rust-version: nightly
- uses: denoland/setup-deno@v1
with:
deno-version: canary
- name: Build
shell: bash
run: |
set -xeuo pipefail
rustc --version
cargo --version
cargo build --release -p netsaur
deno run -Ar jsr:@deno/[email protected] -p netsaur --out src/backends/wasm/lib
deno run -Ar jsr:@deno/[email protected] -p netsaur-tokenizers --out tokenizers/lib
- name: Release
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "release draft"
draft: true
files: |
target/release/libnetsaur.so
target/release/libnetsaur.dylib
target/release/netsaur.dll
src/backends/wasm/lib/netsaur_bg.wasm
tokenizers/lib/netsaur_tokenizers_bg.wasm