Skip to content

Commit

Permalink
gh-actions: Build on FreeBSD VM
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Jul 31, 2024
1 parent e80e538 commit 3a9dbdc
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,36 @@ jobs:
# name: framework_tool_freebsd
# path: target/x86_64-unknown-freebsd/debug/framework_tool

freebsd-vms-build:
name: VM Build for FreeBSD
runs-on: ubuntu-latest
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true

steps:
- uses: actions/checkout@v4
- name: Test in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
envs: 'CARGO_NET_GIT_FETCH_WITH_CLI'
usesh: true
prepare: |
pkg install -y hidapi
run: |
# Build library
cargo build -p framework_lib --no-default-features --features freebsd
# Build executable
cargo build -p framework_tool --no-default-features --features freebsd
# See if executable can start
cargo run --no-default-features --features freebsd -- --help
# Check executable
ls -l target/*/debug/framework_tool
build:
name: Build Linux and UEFI
runs-on: ubuntu-24.04
Expand Down

0 comments on commit 3a9dbdc

Please sign in to comment.