-
Notifications
You must be signed in to change notification settings - Fork 29
40 lines (34 loc) · 1014 Bytes
/
cpp.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
name: c++ CI
# Run this workflow every time a new commit pushed to your repository
on:
push:
branches: CANOSP
pull_request:
branches: CANOSP
jobs:
build:
# Set the type of machine to run on
runs-on: ubuntu-latest
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
- uses: AdoptOpenJDK/install-jdk@v1
with:
version: '11'
targets: 'JAVA_HOME'
impl: 'openj9'
- name: Checkout code
uses: actions/checkout@v2
- name: create build directory
run: cd ./perf-tool && mkdir build
- name: cmake build
run: cmake ..
working-directory: ./perf-tool/build
- name: make clean
run: make clean
working-directory: ./perf-tool/build
- name: make
run: make
working-directory: ./perf-tool/build
- name: run agent
run: $JAVA_HOME/bin/java -agentpath:$PWD/libagent.so -version
working-directory: ./perf-tool/build