-
Notifications
You must be signed in to change notification settings - Fork 79
/
Copy path.cirrus.yml
49 lines (44 loc) · 2.01 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
INSTALL_GH_CLI: &INSTALL_GH_CLI
install_gh_cli_script: |
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y
RELEASE: &RELEASE
release_script: ./script/ci/release.sh
env:
GITHUB_TOKEN: ENCRYPTED[80f01174768fa2065635588baac761b8d7079ea3e06f4af861d3c5c6ada0a8fe93a19e45d33a64fccc24f94f6398593d]
GH_PRE_RELEASE_UPLOAD: true
PREBUILD_AND_TEST: &PREBUILD_AND_TEST
prebuild_script: NODE_VERSION=20 script/ci/prebuild.sh
<<: *RELEASE
test_20_script: NODE_VERSION=20 script/ci/build-and-test.sh && script/ci/clean.sh
test_18_script: NODE_VERSION=18 script/ci/build-and-test.sh && script/ci/clean.sh
test_16_script: NODE_VERSION=16 script/ci/build-and-test.sh && script/ci/clean.sh
linux_arm_task:
only_if: $CIRRUS_CHANGE_TITLE !=~ 'chore\(release\):.*'
env:
SET_NVM: "true"
arm_container:
image: node:20-slim
cirrus_setup_script: chmod +x script/**/* && chmod +x script/**
setup_script: apt update --yes && apt install --yes curl python3 make build-essential g++ unzip zip git
pre_req_script: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.39.3/install.sh | bash
<<: *INSTALL_GH_CLI
<<: *PREBUILD_AND_TEST
artifacts:
path: prebuilds/*.tar.gz
macos_arm_task:
only_if: $CIRRUS_CHANGE_TITLE !=~ 'chore\(release\):.*'
macos_instance:
image: ghcr.io/cirruslabs/macos-ventura-base:latest
env:
SET_NVM: "true"
cirrus_setup_script: chmod +x script/**/* && chmod +x script/**
dry_run_check_script: |
npx --yes commit-and-tag-version --dry-run && git remote -v
pre_req_script: brew install nvm
<<: *PREBUILD_AND_TEST
artifacts:
path: prebuilds/*.tar.gz