Skip to content

Commit

Permalink
test
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 6d71f32 commit 7e06a25
Showing 1 changed file with 29 additions and 30 deletions.
59 changes: 29 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,33 @@ on:
push:

jobs:
# Won't work because pkg-config can't find hidapi.
# I changed build.rs to search for 'hidapi-libusb', which is how it's installed
# on Ubuntu. But that still can't find it.
# freebsd-cross-build:
# name: Cross-Build for FreeBSD
# runs-on: 'ubuntu-22.04'
# env:
# CARGO_NET_GIT_FETCH_WITH_CLI: true
# steps:
# - uses: actions/checkout@v3

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

# - name: Setup Rust toolchain
# run: 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 --features unix

# - name: Upload FreeBSD App
# uses: actions/upload-artifact@v3
# with:
# name: framework_tool_freebsd
# path: target/x86_64-unknown-freebsd/debug/framework_tool
freebsd-cross-build:
name: Cross-Build for FreeBSD
runs-on: 'ubuntu-24.04'
env:
CARGO_NET_GIT_FETCH_WITH_CLI: true
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: 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 --features cross_freebsd

- name: Upload FreeBSD App
uses: actions/upload-artifact@v4
with:
name: framework_tool_freebsd
path: target/x86_64-unknown-freebsd/debug/framework_tool

freebsd-vms-build:
name: VM Build for FreeBSD
Expand All @@ -52,6 +49,8 @@ jobs:
pkg install -y rust hidapi
run: |
export CARGO_NET_GIT_FETCH_WITH_CLI=yes
# Build library
cargo build -p framework_lib --no-default-features --features freebsd
Expand Down

0 comments on commit 7e06a25

Please sign in to comment.