-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.03 KB
/
bsd.yml
File metadata and controls
44 lines (37 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: FreeBSD CI
on:
push:
branches: [ main, adaptiveDt ]
pull_request:
branches: [ main ]
concurrency:
group: freebsd-ci-${{ github.ref }}
cancel-in-progress: true
jobs:
freebsd:
name: FreeBSD ${{ matrix.version }} Build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ["13.5", "14.3", "15.0"]
steps:
- uses: actions/checkout@v4
- name: Build & Test on FreeBSD
uses: vmactions/freebsd-vm@v1
with:
release: "${{ matrix.version }}"
prepare: |
pkg update -f
pkg install -y llvm cmake gmake hdf5
run: |
export CC=clang
export CXX=clang++
cmake -B build -S . -DCMAKE_BUILD_TYPE=Release
cmake --build build -- -j$(sysctl -n hw.ncpu)
cd build && ctest --output-on-failure
- name: Upload FreeBSD binaries
uses: actions/upload-artifact@v4
with:
name: freebsd-${{ matrix.version }}
path: build/*