Skip to content

Commit 5024f5e

Browse files
committed
Enable cross-platform testing on FreeBSD
1 parent 526e99d commit 5024f5e

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,3 +103,25 @@ jobs:
103103
token: ${{ secrets.CODECOV_TOKEN }}
104104
files: lcov.info,lcov.use-gauge-on-cpu-seconds-total.info
105105
env_vars: RUNNER
106+
107+
test-cross-platform-freebsd:
108+
runs-on: ubuntu-latest
109+
steps:
110+
- uses: actions/checkout@v4
111+
- uses: actions/cache@v4
112+
with:
113+
path: |
114+
~/.cargo/bin/
115+
~/.cargo/registry/index/
116+
~/.cargo/registry/cache/
117+
~/.cargo/git/db/
118+
target/
119+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
120+
- name: Cross-platform test
121+
uses: cross-platform-actions/action@v0.25.0
122+
with:
123+
operating_system: freebsd
124+
version: '14.1'
125+
run: |
126+
sudo pkg update && sudo pkg install -y rust cmake rust-bindgen-cli
127+
cargo test

0 commit comments

Comments
 (0)