-
-
Notifications
You must be signed in to change notification settings - Fork 3
48 lines (42 loc) · 1.17 KB
/
deno.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: deno
on:
push:
branches: [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: Install deno_bindgen
run: deno install -Afq -n deno_bindgen https://raw.githubusercontent.com/littledivy/deno_bindgen/main/cli.ts
- name: Build
shell: bash
run: |
set -xeuo pipefail
rustc --version
cargo --version
deno_bindgen --release -- --features "deno_ffi"
- name: Release
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "release draft"
draft: true
files: |
target/release/libwebusb.so
target/release/libwebusb.dylib
target/release/webusb.dll