-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 858 Bytes
/
cpp.yml
File metadata and controls
45 lines (36 loc) · 858 Bytes
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
name: C++ CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test_default:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt install -y gcc make
- name: Build and Run
run: |
cd examples
make
cd build
./main && (echo "Failed to execute ./main"; exit 1) || (exit 0)
test_extern:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Dependencies
run: sudo apt install -y gcc make
- name: Build and Run
run: |
cd examples
make
make external_module
cd build
./main external_module.so