Added Gitea workflow for CI
CI / build-and-test (push) Failing after 8s

This commit is contained in:
2026-04-28 08:40:55 +02:00
parent d9e17892ba
commit d828e7bb99
2 changed files with 27 additions and 1 deletions
+23
View File
@@ -0,0 +1,23 @@
name: CI
on:
push:
branches: [ "main" ]
jobs:
build-and-test:
runs-on: linmidas
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure project
run: |
mkdir -p build
cmake -B build
- name: Build
run: |
cmake --build build
- name: Run tests
run: |
ctest --output-on-failure --test-dir build
+4 -1
View File
@@ -10,13 +10,16 @@ add_compile_options(
-Wno-unused-function
)
# Check if the required environment variables MIDASSYS and EPICSSYS are available
# Check if the required environment variables MIDASSYS, EPICSSYS and EPICS_HOST_ARCH are available
if (NOT DEFINED ENV{MIDASSYS})
message(SEND_ERROR "MIDASSYS environment variable not defined.")
endif()
if (NOT DEFINED ENV{EPICSSYS})
message(SEND_ERROR "EPICSSYS environment variable not defined.")
endif()
if (NOT DEFINED ENV{EPICS_HOST_ARCH})
message(SEND_ERROR "EPICS_HOST_ARCH environment variable not defined.")
endif()
set(CMAKE_CXX_STANDARD 17)
set(MIDASSYS $ENV{MIDASSYS})