From a90dacd709b8636f15e8c4f581889657b4fe6382 Mon Sep 17 00:00:00 2001 From: LongYinan Date: Thu, 27 May 2021 21:52:21 +0800 Subject: [PATCH] ci: fix FreeBSD --- .cirrus.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.cirrus.yml b/.cirrus.yml index 08fd96ad..1e119c62 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -2,15 +2,18 @@ freebsd_instance: image: freebsd-12-2-release-amd64 task: - name: FreeBSD 12.2 + name: FreeBSD env: DEBUG: 'napi:*' + RUSTUP_HOME: /usr/local/rustup + CARGO_HOME: /usr/local/cargo + PATH: /usr/local/cargo/bin:$PATH + RUSTUP_IO_THREADS: 1 setup_script: - pkg update - pkg install -y -f curl node yarn npm libnghttp2 - curl https://sh.rustup.rs -sSf --output rustup.sh - sh rustup.sh -y --profile minimal --default-toolchain stable - - . $HOME/.cargo/env - | echo "~~~~ rustc --version ~~~~" rustc --version @@ -19,7 +22,6 @@ task: echo "~~~~ yarn --version ~~~~" yarn --version test_script: - - . $HOME/.cargo/env - yarn install --ignore-platform --frozen-lockfile --registry https://registry.npmjs.org - yarn build - cargo test -p napi-sys --lib -- --nocapture