57 lines
1.4 KiB
YAML
57 lines
1.4 KiB
YAML
env:
|
|
DEBUG: 'napi:*'
|
|
CI: '1'
|
|
|
|
build_and_test: &BUILD_AND_TEST
|
|
registry_cache:
|
|
folder: $HOME/.cargo/registry
|
|
fingerprint_script:
|
|
- echo $CIRRUS_OS
|
|
- cat crates/*/Cargo.toml
|
|
target_cache:
|
|
folder: target
|
|
fingerprint_script:
|
|
- echo $CIRRUS_OS
|
|
- cat crates/*/Cargo.toml
|
|
install_script:
|
|
- curl https://sh.rustup.rs -sSf --output rustup.sh
|
|
- sh rustup.sh -y --profile minimal --default-toolchain beta
|
|
- |
|
|
echo "~~~~ rustc --version ~~~~"
|
|
rustc --version
|
|
echo "~~~~ node -v ~~~~"
|
|
node -v
|
|
echo "~~~~ yarn --version ~~~~"
|
|
yarn --version
|
|
test_script:
|
|
- yarn install --immutable --mode=skip-build
|
|
- yarn build
|
|
- cargo test -p napi-sys --lib -- --nocapture
|
|
- yarn build:test
|
|
- yarn test --verbose
|
|
|
|
freebsd_task:
|
|
name: FreeBSD
|
|
freebsd_instance:
|
|
image: freebsd-13-2-release-amd64
|
|
env:
|
|
RUSTUP_HOME: /usr/local/rustup
|
|
CARGO_HOME: /usr/local/cargo
|
|
PATH: /usr/local/cargo/bin:$PATH
|
|
RUSTUP_IO_THREADS: '1'
|
|
NX_NON_NATIVE_HASHER: 'true'
|
|
setup_script:
|
|
- pkg update
|
|
- pkg install -y -f curl node libnghttp2 npm yarn
|
|
<<: *BUILD_AND_TEST
|
|
|
|
macos_arm64_task:
|
|
name: macOS arm64
|
|
macos_instance:
|
|
image: ghcr.io/cirruslabs/macos-monterey-xcode
|
|
env:
|
|
PATH: $HOME/.cargo/bin:$PATH
|
|
YARN_IGNORE_NODE: '1'
|
|
setup_script:
|
|
- brew install node yarn
|
|
<<: *BUILD_AND_TEST
|