Skip to content

Commit ddf41bf

Browse files
committed
Introduce FreeBSD CI
1 parent a0f6ffe commit ddf41bf

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,28 @@ jobs:
8484
8585
- name: Install
8686
run: cmake --install build --prefix scalapack_install
87+
88+
freebsd:
89+
runs-on: ubuntu-latest
90+
steps:
91+
- name: Repository checkout
92+
uses: actions/checkout@v4
93+
- uses: cross-platform-actions/action@v0.29.0
94+
with:
95+
operating_system: 'freebsd'
96+
version: '14.3'
97+
architecture: 'x86_64'
98+
run: |
99+
# Use latest package set
100+
sudo mkdir -p /usr/local/etc/pkg/repos/
101+
sudo cp /etc/pkg/FreeBSD.conf /usr/local/etc/pkg/repos/FreeBSD.conf
102+
sudo sed -i.bak -e 's|/quarterly|/latest|' /usr/local/etc/pkg/repos/FreeBSD.conf
103+
104+
# Install dependencies
105+
sudo -E pkg install -y \
106+
cmake ninja mpich gcc13 openblas
107+
108+
# Configure & build
109+
cmake -B build -G Ninja \
110+
-DCMAKE_Fortran_COMPILER="/usr/local/bin/gfortran13"
111+
cmake --build build

0 commit comments

Comments
 (0)