-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add github workflow using FreeBSD in VM
- Loading branch information
1 parent
3871cd7
commit 86cc31e
Showing
1 changed file
with
76 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |