summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build-freebsd.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/build-freebsd.yml b/.github/workflows/build-freebsd.yml
new file mode 100644
index 0000000..af6b57f
--- /dev/null
+++ b/.github/workflows/build-freebsd.yml
@@ -0,0 +1,25 @@
+name: build on FreeBSD
+
+on:
+ push:
+ branches: [ "freebsd" ]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ submodules: true
+
+ - name: Build in FreeBSD
+ uses: vmactions/freebsd-vm@v1
+ with:
+ prepare: |
+ pkg install -y git cmake
+ run: |
+ patch -d libssh -p1 < patch/libssh-0.10.6-2-g6f1b1e76.patch
+ cmake -B build -DCMAKE_BUILD_TYPE=Release
+ cmake --build build
+ build/mscp -h