-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (50 loc) · 2.31 KB
/
ccpp.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
44
45
46
47
48
49
50
51
52
53
#This Github Action tests the success of the code's compilation and install Cmake targets.
name: CI Build and Install
on: #defines what triggers the github action
push:
tags: [ "*" ] #Do the tests on every tag created (e.g. "version 2.0.1")
branches: [ master, develop ] #Do the tests on push/merge of master and develop
pull_request:
branches: [ master, develop ] #Do the tests on pull request of master and develop
jobs:
Ubuntu-build:
permissions: write-all #The PAT provided grants write permissions to all the repo's features
runs-on: ubuntu-20.04
steps:
- name: Checkout Repository
uses: actions/checkout@v3
with:
token: ${{ secrets.CR_PAT }} #PAT stored as diana organization's secret
submodules: recursive #If present init submodules recursively
- name: make configure
env:
GITHUB_ACTION_USERNAME: team-diana
GITHUB_ACTION_PASSWORD_PAT: ${{ secrets.CR_PAT }}
run: bash utils/configure.sh
- name: compile
run: sudo rm -rf build && mkdir build && cd build && cmake .. && cmake --build . --config debug && cd ..
- name: install
run: cd build && sudo cmake --build . --target install --config Release
- name: uninstall
run: sudo bash build/DIANA_uninstall.sh
#Builds on nvidia Jetson (aarch64) architecture
#Jetson-build:
# permissions: write-all
#runs-on: aarch64-ubuntu-18.04
# steps:
#- name: Checkout Repository (Jetson)
#uses: actions/checkout@v3
#with:
#token: ${{ secrets.CR_PAT }} #PAT stored as diana organization's secret
#submodules: recursive
#- name: configure (Jetson)
#env:
#GITHUB_ACTION_USERNAME: team-diana
#GITHUB_ACTION_PASSWORD_PAT: ${{ secrets.CR_PAT }}
#run: bash utils/configure.sh
#- name: compile (Jetson)
#run: sudo rm -rf build && mkdir build && cd build && cmake .. && cmake --build . --config debug && cd ..
#- name: install (Jetson)
#run: cd build && sudo cmake --build . --target install --config Release
#- name: uninstall (Jetson)
#run: sudo bash build/DIANA_uninstall.sh