ci: fix FreeBSD and macOS arm64 CI (#1648)

This commit is contained in:
LongYinan 2023-07-10 16:29:43 +08:00 committed by GitHub
parent 9c09975b9e
commit 16f49a764f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 14 deletions

View file

@ -14,8 +14,6 @@ build_and_test: &BUILD_AND_TEST
- echo $CIRRUS_OS
- cat crates/*/Cargo.toml
install_script:
- curl -qL https://www.npmjs.com/install.sh | sh
- npm install --location=global --ignore-scripts yarn
- curl https://sh.rustup.rs -sSf --output rustup.sh
- sh rustup.sh -y --profile minimal --default-toolchain beta
- |
@ -44,7 +42,7 @@ freebsd_task:
NX_NON_NATIVE_HASHER: 'true'
setup_script:
- pkg update
- pkg install -y -f curl node libnghttp2
- pkg install -y -f curl node libnghttp2 npm yarn
<<: *BUILD_AND_TEST
macos_arm64_task:
@ -54,5 +52,5 @@ macos_arm64_task:
env:
PATH: $HOME/.cargo/bin:$PATH
setup_script:
- brew install node
- brew install node yarn
<<: *BUILD_AND_TEST

View file

@ -17,17 +17,10 @@ A framework for building compiled `Node.js` add-ons in `Rust` via Node-API. Webs
## Platform Support
![Lint](https://github.com/napi-rs/napi-rs/workflows/Lint/badge.svg)
![Linux musl](https://github.com/napi-rs/napi-rs/workflows/Linux%20musl/badge.svg)
![macOS/Windows/Linux x64](https://github.com/napi-rs/napi-rs/workflows/macOS/Windows/Linux%20x64/badge.svg)
![Linux-aarch64](https://github.com/napi-rs/napi-rs/workflows/Linux-aarch64/badge.svg)
![Linux-armv7](https://github.com/napi-rs/napi-rs/workflows/Linux-armv7/badge.svg)
![Linux-riscv64](https://github.com/napi-rs/napi-rs/actions/workflows/linux-riscv64.yaml/badge.svg)
![macOS-Android](https://github.com/napi-rs/napi-rs/workflows/macOS-Android/badge.svg)
[![Android-armv7](https://github.com/napi-rs/napi-rs/actions/workflows/android-armv7.yml/badge.svg)](https://github.com/napi-rs/napi-rs/actions/workflows/android-armv7.yml)
![Windows i686](https://github.com/napi-rs/napi-rs/workflows/Windows%20i686/badge.svg)
[![Windows arm64](https://github.com/napi-rs/napi-rs/actions/workflows/windows-arm.yml/badge.svg)](https://github.com/napi-rs/napi-rs/actions/workflows/windows-arm.yml)
[![macOS/Windows/Linux x64](https://github.com/napi-rs/napi-rs/actions/workflows/test.yaml/badge.svg)](https://github.com/napi-rs/napi-rs/actions/workflows/test.yaml)
[![FreeBSD](https://api.cirrus-ci.com/github/napi-rs/napi-rs.svg)](https://cirrus-ci.com/github/napi-rs/napi-rs?branch=main)
[![Address Sanitizer](https://github.com/napi-rs/napi-rs/actions/workflows/asan.yml/badge.svg)](https://github.com/napi-rs/napi-rs/actions/workflows/asan.yml)
[![Memory Leak Detect](https://github.com/napi-rs/napi-rs/actions/workflows/memory-test.yml/badge.svg)](https://github.com/napi-rs/napi-rs/actions/workflows/memory-test.yml)
## MSRV