Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 0 additions & 50 deletions .github/actions/framework-download/action.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/actions/framework-install/action.yml

This file was deleted.

111 changes: 0 additions & 111 deletions .github/actions/framework-latest-release/action.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/actions/module-build-test/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build and test simple device module
description: Configure, build and test simple device module with CMake

runs:
using: composite
steps:
- name: Set CMake generator
shell: bash
run: |
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "CMAKE_GENERATOR=Visual Studio 17 2022" >> $GITHUB_ENV
else
echo "CMAKE_GENERATOR=Ninja" >> $GITHUB_ENV
fi

- name: Configure simple device module with CMake
shell: bash
run: |
cmake -B build/output -S . -G "$CMAKE_GENERATOR" -DEXAMPLE_MODULE_ENABLE_TESTS=ON -DCMAKE_BUILD_TYPE=Release

- name: Build simple device module with CMake
shell: bash
run: |
cmake --build build/output --config Release

- name: Run simple device module tests with CMake
shell: bash
run: |
ctest --test-dir build/output --output-on-failure -C Release -V
82 changes: 82 additions & 0 deletions .github/workflows/ci-framework.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Build simple device module with openDAQ framework and run tests

on:
workflow_dispatch:
inputs:
runner:
description: "Runner label"
required: true
type: string

branch:
description: "Branch to checkout"
required: false
type: string
default: ""

artifact-run-id:
required: true
type: string

artifact-name:
required: true
type: string

file-name:
required: true
type: string

workflow_call:
inputs:
runner:
description: "Runner label"
required: true
type: string

branch:
description: "Branch to checkout"
required: false
type: string
default: ""

artifact-run-id:
required: true
type: string

artifact-name:
required: true
type: string

file-name:
required: true
type: string

env:
GH_TOKEN: ${{ github.token }}

jobs:
test-artifact:
runs-on: ${{ inputs.runner }}

steps:
- name: Checkout openDAQ module repository
uses: actions/checkout@v4
with:
repository: openDAQ/SimpleDeviceModule
ref: ${{ inputs.branch }}

- name: Download openDAQ framework artifact
id: download
uses: openDAQ/actions/framework-download-artifact@jira/TBBAS-2680-opendaq-gh-actions-github-api-wrapper-unit-tests
with:
run-id: ${{ inputs.artifact-run-id }}
artifact-name: ${{ inputs.artifact-name }}
artifact-filename: ${{ inputs.file-name }}

- name: Install openDAQ framework artifact
uses: openDAQ/actions/framework-install@jira/TBBAS-2680-opendaq-gh-actions-github-api-wrapper-unit-tests
with:
framework-filename: ${{ steps.download.outputs.artifact }}

- name: Build and test simple device module
uses: ./.github/actions/module-build-test
Loading