generated from napi-rs/package-template
-
-
Notifications
You must be signed in to change notification settings - Fork 77
50 lines (40 loc) · 1.02 KB
/
cargo-test.yaml
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
name: Cargo test
env:
DEBUG: 'napi:*'
APP_NAME: 'skia'
on:
push:
branches:
- main
tags-ignore:
- '**'
pull_request:
jobs:
build:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: stable - macOS - cargo - test
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-apple-darwin
toolchain: nightly-2023-08-09
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: macOS-latest-test-cargo-cache
- name: Install dependencies
run: yarn install --immutable --mode=skip-build
- name: Install nasm
run: brew install nasm
- name: Download skia binary
run: node ./scripts/release-skia-binary.js --download
- name: Test
run: cargo test -- --nocapture