Skip to content

Commit 8e24d3f

Browse files
committed
pipeline: Try a haiku and freebsd build for fun
1 parent 4ab2b2e commit 8e24d3f

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/build.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
on: [push, workflow_dispatch]
3+
jobs:
4+
test:
5+
runs-on: ubuntu-latest
6+
strategy:
7+
matrix:
8+
os:
9+
- name: freebsd
10+
architecture: x86-64
11+
version: '14.3'
12+
- name: haiku
13+
architecture: x86-64
14+
version: 'r1beta5'
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Test on ${{ matrix.os.name }}
18+
uses: cross-platform-actions/action@v0.29.0
19+
with:
20+
operating_system: ${{ matrix.os.name }}
21+
architecture: ${{ matrix.os.architecture }}
22+
version: ${{ matrix.os.version }}
23+
shell: bash
24+
memory: 5G
25+
cpu_count: 4
26+
run: |
27+
uname -a
28+
if [[ "${{ matrix.os.name }}" == "haiku" ]]; then pkgman install -y rust_bin; fi;
29+
if [[ "${{ matrix.os.name }}" == "freebsd" ]]; then export IGNORE_OSVERSION=yes && sudo pkg install -y rust; fi;
30+
sleep 5
31+
echo "Starting build..."
32+
cargo build
33+
echo "Starting tests..."
34+
cargo test

0 commit comments

Comments
 (0)