CPP-AP: version 1.2 #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |