Skip to content

Commit

Permalink
Begin to address #288 by adding a github CI for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
ned14 committed Aug 15, 2023
1 parent 0186207 commit 7a5f457
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/unittests_freebsd.yml
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'

0 comments on commit 7a5f457

Please sign in to comment.