pipeline: Try a haiku and freebsd build for fun #7
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
os: | |
- name: freebsd | |
architecture: x86-64 | |
version: '14.3' | |
- name: haiku | |
architecture: x86-64 | |
version: 'r1beta5' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Test on ${{ matrix.os.name }} | |
uses: cross-platform-actions/action@v0.29.0 | |
with: | |
operating_system: ${{ matrix.os.name }} | |
architecture: ${{ matrix.os.architecture }} | |
version: ${{ matrix.os.version }} | |
shell: bash | |
memory: 5G | |
cpu_count: 4 | |
run: | | |
uname -a | |
if [[ "${{ matrix.os.name }}" == "haiku" ]]; then pkgman install -y rust_bin; fi; | |
if [[ "${{ matrix.os.name }}" == "freebsd" ]]; then export IGNORE_OSVERSION=yes; export ASSUME_ALWAYS_YES=YES; sudo pkg update -f && sudo pkg install rust; fi; | |
cargo build | |
cargo test |