-
Notifications
You must be signed in to change notification settings - Fork 27
53 lines (51 loc) · 1.44 KB
/
ci.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
49
50
51
52
53
name: ci
on:
push:
branches: main
pull_request:
branches: main
jobs:
build:
strategy:
matrix:
os: [ windows-latest, macos-latest, ubuntu-latest ]
toolchain: [nightly]
deno_version: [1.38.1]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref == 'refs/heads/main' }}
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- uses: denoland/setup-deno@v1
with:
deno-version: ${{ matrix.deno_version }}
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
components: rustfmt, clippy
- name: Build
run: cargo build --locked --release
- name: Test (debug)
working-directory: ./e2e_test
run: |
../target/release/deno_bindgen -o bindings/mod.ts
deno test -A --unstable
- name: Test (release)
working-directory: ./e2e_test
shell: bash
run: |
rm -rf target
../target/release/deno_bindgen -o bindings/mod.ts --release
deno test -A --unstable
- name: Bench
working-directory: ./e2e_test
shell: bash
run: deno bench -A --unstable