Skip to content

Commit f6a1def

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

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/build.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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; export ASSUME_ALWAYS_YES=YES; sudo pkg update -f && sudo pkg install rust; fi;
30+
cargo build
31+
cargo test

0 commit comments

Comments
 (0)