Skip to content

Commit

Permalink
Add GitHub systemtest action
Browse files Browse the repository at this point in the history
Change-Id: Ia08241f871bb99fc01c6092f8f89c27506a38c54
  • Loading branch information
mx990 committed Mar 19, 2024
1 parent 0640c44 commit 1367ea6
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/systemtests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This starter workflow is for a CMake project running on multiple platforms. There is a different starter workflow if you just want a single platform.
# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-single-platform.yml
name: CMake on multiple platforms

on:
push:
branches: [ "release", "develop", "freeze" ]
pull_request:
branches: [ "release", "develop", "freeze" ]

jobs:
build:
runs-on: ubuntu-latest
container: quay.io/eclipse4diac/4diac-fortebuildcontainer:latest

steps:
- uses: actions/checkout@v4

- name: Set reusable strings
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
-DCMAKE_BUILD_TYPE="Debug"
-S ${{ github.workspace }}
-DFORTE_ARCHITECTURE=${{ matrix.architecture }}
-DFORTE_TESTS=ON
-DFORTE_SYSTEM_TESTS=ON
-DFORTE_MODULE_CONVERT=ON
-DFORTE_MODULE_IEC61131=ON
-DFORTE_MODULE_UTILS=ON
-DFORTE_MODULE_RT_Events=ON
-DFORTE_MODULE_RECONFIGURATION=ON
-DFORTE_IO=ON
-DFORTE_COM_ETH=ON
-DFORTE_COM_FBDK=ON
-DFORTE_COM_LOCAL=ON
-DFORTE_COM_RAW=ON
-DFORTE_COM_HTTP=ON
-DFORTE_COM_OPC_UA=ON
-DFORTE_COM_OPC_UA_INCLUDE_DIR=${WORKDIR}/open62541/binStatic
-DFORTE_COM_OPC_UA_LIB_DIR=${WORKDIR}/open62541/binStatic/bin
-DFORTE_COM_OPC_UA_LIB=libopen62541.a
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }}

- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
run: ctest

0 comments on commit 1367ea6

Please sign in to comment.