Skip to content

Commit 94742af

Browse files
tesujinyurik
authored andcommitted
cirrus-ci: use matrix to remove redundant parts on building bsds
1 parent 35cabdf commit 94742af

File tree

1 file changed

+11
-32
lines changed

1 file changed

+11
-32
lines changed

.cirrus.yml

+11-32
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,19 @@
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+
matrix:
4+
- name: nightly freebsd-13
5+
freebsd_instance:
6+
image_family: freebsd-13-3
7+
- name: nightly freebsd-14
8+
freebsd_instance:
9+
image: freebsd-14-0-release-amd64-ufs
10+
- name: nightly freebsd-15
11+
freebsd_instance:
12+
image_family: freebsd-15-0-snap
513
setup_script:
614
- pkg install -y libnghttp2 curl
715
- curl https://sh.rustup.rs -sSf --output rustup.sh
816
- 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
3817
test_script:
3918
- . $HOME/.cargo/env
4019
- LIBC_CI=1 sh ci/run.sh x86_64-unknown-freebsd

0 commit comments

Comments
 (0)