Skip to content
Merged
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
46 changes: 18 additions & 28 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,26 @@ on:
push:

jobs:
freebsd-cross-build:
name: Cross-Build for FreeBSD
runs-on: 'ubuntu-24.04'
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
build-freebsd:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev libhidapi-dev

- name: Setup Rust toolchain
run: |
rm rust-toolchain.toml
rustup target add x86_64-unknown-freebsd
rustup show

- 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: Upload FreeBSD App
uses: actions/upload-artifact@v4
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- name: Build
id: test
uses: vmactions/freebsd-vm@v1
with:
name: framework_tool_freebsd
path: target/x86_64-unknown-freebsd/debug/framework_tool
release: "15.0"
arch: x86_64
usesh: true
mem: 8192
sync: rsync
prepare: |
pkg install -y rust hidapi pkgconf
run: |
cargo build -p framework_lib
cargo build -p framework_tool

build:
name: Build Linux
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