-
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.
* FreeBSD compatibility patch * add github workflow using FreeBSD in VM --------- Co-authored-by: Michael Smith <miksmith@attglobal.net> Co-authored-by: michaeldsmith <37905569+michaeldsmith@users.noreply.github.com>
- Loading branch information
1 parent
0b32a00
commit 972d0ab
Showing
5 changed files
with
84 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 |
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
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
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
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