Skip to content

Commit 6460936

Browse files
Add FreeBSD CI
1 parent d080411 commit 6460936

File tree

3 files changed

+92
-0
lines changed

3 files changed

+92
-0
lines changed

.cirrus.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is ci/actions-templates/linux-builds-template.yaml
2+
# Do not edit this file in .cirrus.yml
3+
4+
task:
5+
name: FreeBSD
6+
freebsd_instance:
7+
image: freebsd-13-0-release-amd64
8+
setup_script:
9+
- pkg install -y git gmake bash
10+
- echo "========="
11+
- echo "Acquire tags for the repo"
12+
- git fetch --no-tags --prune --depth=1 origin +refs/tags/*:refs/tags/*
13+
- echo "========="
14+
- echo "Display the current git status"
15+
- git status
16+
- git describe
17+
- echo "========="
18+
- echo "Prep cargo dirs"
19+
- mkdir -p ~/.cargo/{registry,git}
20+
- echo "========="
21+
- echo "Install Rustup using ./rustup-init.sh"
22+
- sh rustup-init.sh --default-toolchain=stable --profile=minimal -y
23+
# It's the equivalent of `source`
24+
- . $HOME/.cargo/env
25+
- echo "========="
26+
- echo "Ensure we have the components we need"
27+
- rustup component add rustfmt
28+
- rustup component add clippy
29+
- echo "========="
30+
- echo "Run the freebsd check"
31+
- unset SKIP_TESTS
32+
- export LIBZ_SYS_STATIC=1
33+
- export CARGO_BUILD_JOBS=1
34+
- export TARGET="x86_64-unknown-freebsd"
35+
- bash ci/run.bash
36+
upload_to_s3:
37+
only_if: $CIRRUS_BRANCH == "stable"
38+
script:
39+
- pkg install -y py36-pip bash
40+
- pip-3.6 install -U setuptools
41+
- pip-3.6 install awscli
42+
- bash ci/prepare-deploy.bash
43+
- aws s3 cp --recursive deploy/ s3://dev-static-rust-lang-org/rustup/

ci/cirrus-templates/freebsd.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# This is ci/actions-templates/linux-builds-template.yaml
2+
# Do not edit this file in .cirrus.yml
3+
4+
task:
5+
name: FreeBSD
6+
freebsd_instance:
7+
image: freebsd-13-0-release-amd64
8+
setup_script:
9+
- pkg install -y git gmake bash
10+
- echo "========="
11+
- echo "Acquire tags for the repo"
12+
- git fetch --no-tags --prune --depth=1 origin +refs/tags/*:refs/tags/*
13+
- echo "========="
14+
- echo "Display the current git status"
15+
- git status
16+
- git describe
17+
- echo "========="
18+
- echo "Prep cargo dirs"
19+
- mkdir -p ~/.cargo/{registry,git}
20+
- echo "========="
21+
- echo "Install Rustup using ./rustup-init.sh"
22+
- sh rustup-init.sh --default-toolchain=stable --profile=minimal -y
23+
# It's the equivalent of `source`
24+
- . $HOME/.cargo/env
25+
- echo "========="
26+
- echo "Ensure we have the components we need"
27+
- rustup component add rustfmt
28+
- rustup component add clippy
29+
- echo "========="
30+
- echo "Run the freebsd check"
31+
- unset SKIP_TESTS
32+
- export LIBZ_SYS_STATIC=1
33+
- export CARGO_BUILD_JOBS=1
34+
- export TARGET="x86_64-unknown-freebsd"
35+
- bash ci/run.bash
36+
upload_to_s3:
37+
only_if: $CIRRUS_BRANCH == "stable"
38+
script:
39+
- pkg install -y py36-pip bash
40+
- pip-3.6 install -U setuptools
41+
- pip-3.6 install awscli
42+
- bash ci/prepare-deploy.bash
43+
- aws s3 cp --recursive deploy/ s3://dev-static-rust-lang-org/rustup/

ci/cirrus-templates/gen-workflows.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/sh
2+
3+
INPATH=$(dirname "$0")
4+
OUTPATH="${INPATH}/../.."
5+
6+
cp freebsd.yaml "$OUTPATH/.cirrus.yml"

0 commit comments

Comments
 (0)