-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 908 Bytes
/
demo.yaml
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
name: demo
on:
push:
branches:
- '*'
paths:
- .github/workflows/demo.yaml
- .gitmodules
- cpp-ap-demo
- include/**
- CMakeLists.txt
jobs:
build-demo:
name: Build cpp-ap-demo
runs-on: ubuntu-24.04
steps:
- name: Check out current branch
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive
- name: Sync submodules to HTTPS
run: git submodule sync --recursive
- name: Update submodules
run: git submodule update --init --recursive
- name: Determine Current Branch
id: branch-name
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT
- name: Build cpp-ap-demo
run: |
cd cpp-ap-demo
cmake -B build -DAP_TAG=${{ steps.branch-name.outputs.branch }}
cd build
make -j 4