feat: improve Tokenizers (#45) #129
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 -A https://deno.land/x/[email protected]/main.ts -p netsaur --out src/backends/wasm/lib | |
deno run -A https://deno.land/x/[email protected]/main.ts -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 |