Skip to content

Commit

Permalink
add github workflow using FreeBSD in VM
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeldsmith committed Jun 6, 2024
1 parent 3871cd7 commit 86cc31e
Showing 1 changed file with 76 additions and 0 deletions.
76 changes: 76 additions & 0 deletions .github/workflows/freebsd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: FreeBSD

on:
push:
paths-ignore:
- 'README.md'
- 'doc/**'
pull_request:
paths-ignore:
- 'README.md'
- 'doc/**'

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug

jobs:

setup-freeBSD:

runs-on: ubuntu-latest
# based on example from https://github.com/marketplace/actions/freebsd-vm
steps:
- uses: actions/checkout@v4
- name: setup FreeBSD on github runner
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y curl
run: |
pwd
ls -lah
whoami
env
freebsd-version
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: do CI on FreeBSD VM on github runner
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y cmake
pkg install -y openexr
pkg install -y tiff
run: |
mkdir build &&
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} &&
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: do CI on FreeBSD VM on github runner
id: test
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
pkg install -y cmake
pkg install -y openexr
pkg install -y tiff
run: |
mkdir build &&
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} &&
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} &&
cd build &&
ctest -V --output-on-failure

0 comments on commit 86cc31e

Please sign in to comment.