Skip to content

Commit 79a18f1

Browse files
committed
Replace cirrus with vmactions
Testing to see if I did this right.
1 parent 131cea3 commit 79a18f1

2 files changed

Lines changed: 45 additions & 30 deletions

File tree

.cirrus.yml

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

.github/workflows/vmactions.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
env:
6+
CARGO_TERM_COLOR: always
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
include:
15+
- freebsd_version: "15.0"
16+
rust_version: "nightly-2025-05-18"
17+
name: FreeBSD ${{ matrix.freebsd_version }}
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Start FreeBSD VM
21+
uses: vmactions/freebsd-vm@v1
22+
with:
23+
release: ${{ matrix.freebsd_version }}
24+
usesh: true
25+
- name: Setup Environment
26+
shell: freebsd {0}
27+
run: |
28+
pkg install -y git
29+
git clone --depth=1 --branch stable/15 https://github.com/freebsd/freebsd-src.git $HOME/freebsd-src
30+
fetch https://sh.rustup.rs -o rustup.sh
31+
sh rustup.sh -y --profile=minimal --default-toolchain ${{ matrix.rust_version }}-x86_64-unknown-freebsd
32+
. "$HOME/.cargo/env"
33+
pkg install -y cargo-make llvm19
34+
rustup component add rust-src
35+
- name: Build Drivers
36+
shell: freebsd {0}
37+
run: |
38+
. "$HOME/.cargo/env"
39+
export SYSDIR="$HOME/freebsd-src/sys"
40+
cd drivers/hello
41+
cargo make build-kmod
42+
make clean && cargo clean
43+
cd ../char
44+
cargo make build-kmod
45+
make clean && cargo clean

0 commit comments

Comments
 (0)