Skip to content

Commit 6423f17

Browse files
authored
Merge pull request #142 from arrowd/freebsd-ci
Introduce FreeBSD CI
2 parents 77c9952 + ff18e0b commit 6423f17

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/cmake.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,33 @@ 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/[email protected]
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+
echo "::group::Dependencies installation"
105+
sudo -E pkg install -y \
106+
cmake ninja mpich gcc13 openblas
107+
echo "::endgroup::"
108+
109+
echo "::group::CMake configuration"
110+
cmake -B build -G Ninja \
111+
-DCMAKE_Fortran_COMPILER="/usr/local/bin/gfortran13"
112+
echo "::endgroup::"
113+
114+
echo "::group::Building"
115+
cmake --build build
116+
echo "::endgroup::"

0 commit comments

Comments
 (0)