Skip to content

<TBBAS-2595> Create shared forkflow for build and test simple device … #18

<TBBAS-2595> Create shared forkflow for build and test simple device …

<TBBAS-2595> Create shared forkflow for build and test simple device … #18

Workflow file for this run

name: Build simple device module with openDAQ framework and run tests

Check failure on line 1 in .github/workflows/build-tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-tests.yml

Invalid workflow file

(Line: 49, Col: 9): Unexpected value 'equired'
on:
workflow_dispatch:
inputs:
runner:
description: "Runner label"
required: true
type: string
branch:
description: "Branch to checkout"
required: true
type: string
artifact-run-id:
required: true
type: string
artifact-name:
required: true
type: string
file-name:
equired: true
type: string
workflow_call:
inputs:
runner:
description: "Runner label"
required: true
type: string
branch:
description: "Branch to checkout"
required: true
type: string
artifact-run-id:
required: true
type: string
artifact-name:
required: true
type: string
file-name:
equired: true
type: string
env:
GH_TOKEN: ${{ github.token }}
jobs:
build:
runs-on: ${{ inputs.runner }}
steps:
- name: Checkout openDAQ module repository
uses: actions/checkout@v4
with:
ref: ${{ inputs.branch }}
- name: Download openDAQ framework package
uses: ./.github/actions/opendaq-github-download-artifact
with:
opendaq-artifact-run-id: ${{ inputs.artifact-run-id }}
opendaq-artifact-name: ${{ inputs.artifact-name }}
- name: Install openDAQ framework package
uses: ./.github/actions/framework-install
with:
opendaq-framework-package-filename: ${{ inputs.artifact-name }}/${{ inputs.file-name }}
- name: Configure simple device module with CMake
run: cmake -B build/output -S . -G "Ninja" -DEXAMPLE_MODULE_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release
- name: Build simple device module with CMake
run: cmake --build build/output --config Release
- name: Run simple device module tests with CMake
run: ctest --test-dir build/output --output-on-failure -C Release -V