Skip to content

Commit 0cde683

Browse files
committed
cirrus-ci: use matrix to remove redundant parts on building bsds
1 parent ca70695 commit 0cde683

File tree

1 file changed

+9
-32
lines changed

1 file changed

+9
-32
lines changed

.cirrus.yml

Lines changed: 9 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,17 @@
11
task:
2-
name: nightly x86_64-unknown-freebsd-13
3-
freebsd_instance:
4-
image_family: freebsd-13-3
2+
only_if: $CIRRUS_BRANCH == 'main' || $CIRRUS_BASE_BRANCH == 'libc-0.2' || $CIRRUS_BASE_BRANCH == 'main'
3+
name: nightly $image_family
4+
matrix:
5+
- freebsd_instance:
6+
image_family: freebsd-13-3
7+
- freebsd_instance:
8+
image: freebsd-14-0-release-amd64-ufs
9+
- freebsd_instance:
10+
image_family: freebsd-15-0-snap
511
setup_script:
612
- pkg install -y libnghttp2 curl
713
- curl https://sh.rustup.rs -sSf --output rustup.sh
814
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
9-
- . $HOME/.cargo/env
10-
test_script:
11-
- . $HOME/.cargo/env
12-
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
13-
- sh ci/run.sh x86_64-unknown-freebsd
14-
15-
task:
16-
name: nightly x86_64-unknown-freebsd-14
17-
freebsd_instance:
18-
image: freebsd-14-0-release-amd64-ufs
19-
setup_script:
20-
- pkg install -y libnghttp2 curl
21-
- curl https://sh.rustup.rs -sSf --output rustup.sh
22-
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
23-
- . $HOME/.cargo/env
24-
test_script:
25-
- . $HOME/.cargo/env
26-
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd
27-
- sh ci/run.sh x86_64-unknown-freebsd
28-
29-
task:
30-
name: nightly x86_64-unknown-freebsd-15
31-
freebsd_instance:
32-
image_family: freebsd-15-0-snap
33-
setup_script:
34-
- pkg install -y libnghttp2 curl
35-
- curl https://sh.rustup.rs -sSf --output rustup.sh
36-
- sh rustup.sh -y --default-toolchain nightly --profile=minimal
37-
- . $HOME/.cargo/env
3815
test_script:
3916
- . $HOME/.cargo/env
4017
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd

0 commit comments

Comments
 (0)