2022-09-14 11:34:04 +09:00
|
|
|
env:
|
|
|
|
DEBUG: 'napi:*'
|
|
|
|
CI: '1'
|
2020-10-13 00:23:15 +09:00
|
|
|
|
2022-09-14 11:34:04 +09:00
|
|
|
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:
|
2020-10-13 00:23:15 +09:00
|
|
|
- curl https://sh.rustup.rs -sSf --output rustup.sh
|
2023-01-29 17:55:33 +09:00
|
|
|
- sh rustup.sh -y --profile minimal --default-toolchain beta
|
2020-10-13 00:23:15 +09:00
|
|
|
- |
|
|
|
|
echo "~~~~ rustc --version ~~~~"
|
|
|
|
rustc --version
|
|
|
|
echo "~~~~ node -v ~~~~"
|
|
|
|
node -v
|
|
|
|
echo "~~~~ yarn --version ~~~~"
|
|
|
|
yarn --version
|
|
|
|
test_script:
|
2022-04-01 15:29:51 +09:00
|
|
|
- yarn install --immutable --mode=skip-build
|
2020-10-13 00:23:15 +09:00
|
|
|
- yarn build
|
|
|
|
- cargo test -p napi-sys --lib -- --nocapture
|
|
|
|
- yarn build:test
|
2022-03-05 15:14:32 +09:00
|
|
|
- yarn test --verbose
|
2022-09-14 11:34:04 +09:00
|
|
|
|
|
|
|
freebsd_task:
|
|
|
|
name: FreeBSD
|
|
|
|
freebsd_instance:
|
2023-11-03 13:09:06 +09:00
|
|
|
image: freebsd-13-2-release-amd64
|
2022-09-14 11:34:04 +09:00
|
|
|
env:
|
|
|
|
RUSTUP_HOME: /usr/local/rustup
|
|
|
|
CARGO_HOME: /usr/local/cargo
|
|
|
|
PATH: /usr/local/cargo/bin:$PATH
|
|
|
|
RUSTUP_IO_THREADS: '1'
|
2023-04-11 11:47:52 +09:00
|
|
|
NX_NON_NATIVE_HASHER: 'true'
|
2022-09-14 11:34:04 +09:00
|
|
|
setup_script:
|
|
|
|
- pkg update
|
2023-07-10 17:29:43 +09:00
|
|
|
- pkg install -y -f curl node libnghttp2 npm yarn
|
2022-09-14 11:34:04 +09:00
|
|
|
<<: *BUILD_AND_TEST
|
|
|
|
|
|
|
|
macos_arm64_task:
|
|
|
|
name: macOS arm64
|
|
|
|
macos_instance:
|
|
|
|
image: ghcr.io/cirruslabs/macos-monterey-xcode
|
|
|
|
env:
|
|
|
|
PATH: $HOME/.cargo/bin:$PATH
|
2023-11-02 21:32:36 +09:00
|
|
|
YARN_IGNORE_NODE: '1'
|
2022-09-14 11:34:04 +09:00
|
|
|
setup_script:
|
2023-07-10 17:29:43 +09:00
|
|
|
- brew install node yarn
|
2022-09-14 11:34:04 +09:00
|
|
|
<<: *BUILD_AND_TEST
|