2024-02-05 09:29:47 +00:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-02-10 14:49:57 +00:00
|
|
|
branches-ignore: [ ]
|
2024-02-05 09:29:47 +00:00
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2024-02-09 11:47:35 +00:00
|
|
|
- name: Set up build requirements
|
|
|
|
run: sudo apt-get update -y && sudo apt-get install -y cmake g++
|
|
|
|
|
2024-02-05 09:29:47 +00:00
|
|
|
- name: Install LimeSuite dependencies
|
|
|
|
run: sudo apt-get update -y && sudo apt-get install -y limesuite liblimesuite-dev
|
|
|
|
|
|
|
|
- name: Install HDF5 dependencies
|
|
|
|
run: sudo apt-get update -y && sudo apt-get install -y libhdf5-dev
|
|
|
|
|
2024-02-09 11:38:41 +00:00
|
|
|
- name: Check out code
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
run: cmake -S . -B build && cmake --build build
|
2024-02-09 11:49:25 +00:00
|
|
|
|
|
|
|
- name: Upload build artifacts
|
|
|
|
uses: actions/upload-artifact@v2
|
|
|
|
with:
|
|
|
|
name: build
|
2024-02-10 14:49:57 +00:00
|
|
|
path: build
|