forked from napi-rs/napi-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.cirrus.yml
57 lines (54 loc) · 1.43 KB
/
.cirrus.yml
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
51
52
53
54
55
56
57
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 lerna run build --scope '@napi-rs/*' --ignore '@napi-rs/wasm-runtime'
- cargo test -p napi-sys --lib -- --nocapture
- yarn build:test
- yarn test --verbose
freebsd_task:
name: FreeBSD
freebsd_instance:
image_family: freebsd-14-0
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
<<: *BUILD_AND_TEST