-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 1005 Bytes
/
cicd.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: C/C++ CI
on:
push:
branches: # Run when pushed to develop and master
- master
- develop
schedule:
- cron: "0 2 * * 0" # Run at 2am UTC on Sun
jobs:
build_and_test:
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update \
&& sudo apt-get install -y gcc make git check libsubunit-dev libjson-c-dev libnuma-dev libcap-dev libgsl-dev libgsl-dbg
- name: "Build Orchestrator, tests and Use cases"
run: make
env:
DEBUG: ${{ !endsWith(github.ref, '/master') }}
- name: Run and build test code - libcheck
run: make test
- name: Move binaries to new folder
run: |
mkdir bin \
&& mv orchestrator check_test DataGenerator WorkerApp bin/
- name: Upload result for job
uses: actions/upload-artifact@v1
with:
name: binaries
path: bin/