-
-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin to address #288 by adding a github CI for FreeBSD
- Loading branch information
Showing
1 changed file
with
54 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,54 @@ | ||
name: Unit tests FreeBSD | ||
|
||
on: | ||
push: | ||
branches: | ||
- develop | ||
- master | ||
pull_request: | ||
schedule: | ||
- cron: '0 0 1 * *' | ||
|
||
jobs: | ||
FreeBSD: | ||
name: FreeBSD 13 | ||
runs-on: macos-latest | ||
env: | ||
NAME: FreeBSD | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: CMake tests FreeBSD | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
version: '13.2' | ||
run: | | ||
ctest -S .ci.cmake -VV --timeout 900 "-DCTEST_CONFIGURE_OPTIONS=$CMAKE_CONFIGURE_OPTIONS" | ||
- name: Upload Test Results | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: FreeBSD test results | ||
path: prebuilt/merged_junit_results.xml | ||
|
||
publish-test-results: | ||
name: "Publish Unit Tests Results" | ||
needs: [FreeBSD] | ||
runs-on: ubuntu-latest | ||
if: success() || failure() | ||
|
||
steps: | ||
- name: Download Artifacts | ||
uses: actions/download-artifact@v2 | ||
with: | ||
path: artifacts | ||
|
||
- name: Publish Unit Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
check_name: Unit Test Results | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
files: '**/merged_junit_results.xml' |