Skip to content

m121

m121 #1399

Workflow file for this run

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: Output toolchain
id: toolchain
shell: bash
run: echo "version=$(cat ./rust-toolchain)" >> "$GITHUB_OUTPUT"
- name: Install
uses: dtolnay/rust-toolchain@stable
with:
targets: x86_64-apple-darwin
toolchain: ${{ steps.toolchain.outputs.version }}
- name: Cache cargo registry
uses: actions/cache@v3
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