This commit is contained in:
@@ -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
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user