Skip to content

Commit f61e36d

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

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
- msrv
1818
- test-linux
1919
- test-macos
20+
- test-freebsd
2021
- test-windows
2122
- build-cross
2223
- test-cgroups
@@ -150,6 +151,23 @@ jobs:
150151
rustup target add ${{ matrix.target }}
151152
cargo build --verbose --target ${{ matrix.target }}
152153
154+
test-freebsd:
155+
runs-on: macos-12
156+
steps:
157+
- uses: actions/checkout@v3
158+
- id: test-cpuset
159+
uses: vmactions/freebsd-vm@v0
160+
with:
161+
envs: 'RUST_BACKTRACE CARGO_TERM_COLOR'
162+
usesh: true
163+
prepare: |
164+
pkg install -y rust
165+
run: |
166+
cargo test --verbose
167+
cpuset -l 0 cargo test --verbose -e NUM_CPUS_TEST_GET=1
168+
cpuset -l 0,1 cargo test --verbosee -e NUM_CPUS_TEST_GET=2
169+
170+
153171
test-cgroups:
154172
runs-on: ubuntu-latest
155173

0 commit comments

Comments
 (0)