Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,25 @@ on:
push:

jobs:
build-freebsd:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
mem: 8192
sync: rsync
prepare: |
pkg install -y rust hidapi pkgconf
run: |
cargo build -p framework_lib
cargo build -p framework_tool

freebsd-cross-build:
name: Cross-Build for FreeBSD
runs-on: 'ubuntu-24.04'
Expand All @@ -25,8 +44,10 @@ jobs:
- name: Install cross compilation tool
run: cargo install cross

- name: Build FreeBSD tool
run: cross build --target=x86_64-unknown-freebsd --no-default-features -p framework_lib
- name: Build FreeBSD lib and tool
run: |
cross build --target=x86_64-unknown-freebsd -p framework_lib
cross build --target=x86_64-unknown-freebsd -p framework_tool

- name: Upload FreeBSD App
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ direnv shell
sudo dnf install systemd-devel hidapi-devel

# FreeBSD
sudo pkg install hidapi
sudo pkg install rust hidapi pkgconf
```

```sh
Expand Down
Loading