Skip to content

Commit 8219823

Browse files
committed
gh-actions: Build on FreeBSD VM
Signed-off-by: Daniel Schaefer <[email protected]>
1 parent ca1f347 commit 8219823

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,36 @@ jobs:
3434
name: framework_tool_freebsd
3535
path: target/x86_64-unknown-freebsd/debug/framework_tool
3636

37+
freebsd-vms-build:
38+
name: VM Build for FreeBSD
39+
runs-on: ubuntu-latest
40+
env:
41+
CARGO_NET_GIT_FETCH_WITH_CLI: true
42+
43+
steps:
44+
- uses: actions/checkout@v4
45+
- name: Test in FreeBSD
46+
id: test
47+
uses: vmactions/freebsd-vm@v1
48+
with:
49+
envs: 'CARGO_NET_GIT_FETCH_WITH_CLI'
50+
usesh: true
51+
prepare: |
52+
pkg install -y rust hidapi
53+
54+
run: |
55+
# Build library
56+
cargo build -p framework_lib --no-default-features --features freebsd
57+
58+
# Build executable
59+
cargo build -p framework_tool --no-default-features --features freebsd
60+
61+
# See if executable can start
62+
cargo run --no-default-features --features freebsd -- --help
63+
64+
# Check executable
65+
ls -l target/*/debug/framework_tool
66+
3767
build:
3868
name: Build Linux
3969
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)