Skip to content

Commit 07f0561

Browse files
authored
Merge pull request #1683 from neilpang/ci/freebsd-vmactions
Run the FreeBSD tests on GitHub Actions instead of Cirrus
2 parents c8bf123 + eb75f0c commit 07f0561

2 files changed

Lines changed: 41 additions & 23 deletions

File tree

.cirrus.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

.github/workflows/freebsd.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: FreeBSD
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
permissions:
8+
contents: read
9+
10+
jobs:
11+
freebsd:
12+
name: freebsd
13+
runs-on: ubuntu-latest
14+
timeout-minutes: 60
15+
16+
steps:
17+
- uses: actions/checkout@v7
18+
19+
- name: Test in FreeBSD
20+
uses: vmactions/freebsd-vm@v1
21+
with:
22+
usesh: true
23+
cache-after-prepare: true
24+
prepare: |
25+
pkg install -y curl git-tiny binutils
26+
curl https://sh.rustup.rs -sSf --output rustup.sh
27+
sh rustup.sh --default-toolchain none -y --profile=minimal
28+
run: |
29+
set -e
30+
. $HOME/.cargo/env
31+
32+
./y.sh prepare
33+
34+
# Disabling incr comp reduces cache size and incr comp doesn't save
35+
# as much on CI anyway.
36+
export CARGO_BUILD_INCREMENTAL=false
37+
# FIXME(rust-lang/rust#134863) necessary to avoid error when
38+
# dlopening proc macros during compilation of cg_clif.
39+
export LD_STATIC_TLS_EXTRA=4096
40+
# Skip rand as it fails on FreeBSD due to rust-random/rand#1355
41+
./y.sh test --skip-test test.rust-random/rand

0 commit comments

Comments
 (0)