Skip to content

Commit

Permalink
FreeBSD: Add CI for cpuset support
Browse files Browse the repository at this point in the history
  • Loading branch information
Freaky committed Apr 21, 2023
1 parent 20117a0 commit ab17d03
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- master
- freebsd

env:
RUST_BACKTRACE: 1
Expand All @@ -17,6 +18,7 @@ jobs:
- msrv
- test-linux
- test-macos
- test-freebsd
- test-windows
- build-cross
- test-cgroups
Expand Down Expand Up @@ -150,6 +152,24 @@ jobs:
rustup target add ${{ matrix.target }}
cargo build --verbose --target ${{ matrix.target }}
test-freebsd:
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- id: test-cpuset
uses: vmactions/freebsd-vm@v0
with:
envs: 'RUST_BACKTRACE CARGO_TERM_COLOR'
usesh: true
copyback: false
prepare: |
pkg install -y rust
run: |
cargo test --verbose
NUM_CPUS_TEST_GET=1 cpuset -l 0 cargo test --verbose
NUM_CPUS_TEST_GET=2 cpuset -l 0,1 cargo test --verbose
test-cgroups:
runs-on: ubuntu-latest

Expand Down

0 comments on commit ab17d03

Please sign in to comment.