Skip to content

Commit efff545

Browse files
committed
FreeBSD: Blind attempt at CI for cpuset
1 parent 20117a0 commit efff545

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- master
7+
- freebsd
78

89
env:
910
RUST_BACKTRACE: 1
@@ -17,6 +18,7 @@ jobs:
1718
- msrv
1819
- test-linux
1920
- test-macos
21+
- test-freebsd
2022
- test-windows
2123
- build-cross
2224
- test-cgroups
@@ -150,6 +152,23 @@ jobs:
150152
rustup target add ${{ matrix.target }}
151153
cargo build --verbose --target ${{ matrix.target }}
152154
155+
test-freebsd:
156+
runs-on: macos-12
157+
steps:
158+
- uses: actions/checkout@v3
159+
- id: test-cpuset
160+
uses: vmactions/freebsd-vm@v0
161+
with:
162+
envs: 'RUST_BACKTRACE CARGO_TERM_COLOR'
163+
usesh: true
164+
prepare: |
165+
pkg install -y rust
166+
run: |
167+
cargo test --verbose
168+
cpuset -l 0 cargo test --verbose -e NUM_CPUS_TEST_GET=1
169+
cpuset -l 0,1 cargo test --verbosee -e NUM_CPUS_TEST_GET=2
170+
171+
153172
test-cgroups:
154173
runs-on: ubuntu-latest
155174

0 commit comments

Comments
 (0)