Skip to content

Commit f46b3a2

Browse files
authored
Add GitHub build pipeline (#8)
1 parent b9f7134 commit f46b3a2

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

.github/workflows/build_test.yaml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: Build and test
2+
run-name: Build and test PR${{ github.event.number }}
3+
4+
on:
5+
workflow_dispatch:
6+
push:
7+
branches:
8+
- main
9+
tags:
10+
- '*'
11+
pull_request:
12+
branches:
13+
- main
14+
15+
jobs:
16+
build-ubuntu-x64-clang:
17+
name: Ubuntu x64 Clang
18+
runs-on: ubuntu-22.04
19+
steps:
20+
- name: Git checkout
21+
uses: actions/checkout@v4
22+
with:
23+
submodules: 'true'
24+
25+
- name: Build layer_example
26+
run: |
27+
export CXX=clang++
28+
mkdir layer_example/build_rel
29+
cd layer_example/build_rel
30+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
31+
make -j4
32+
33+
build-ubuntu-x64-gcc:
34+
name: Ubuntu x64 GCC
35+
runs-on: ubuntu-22.04
36+
steps:
37+
- name: Git checkout
38+
uses: actions/checkout@v4
39+
with:
40+
submodules: 'true'
41+
42+
- name: Build layer_example
43+
run: |
44+
export CXX=g++
45+
mkdir layer_example/build_rel
46+
cd layer_example/build_rel
47+
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
48+
make -j4
49+
50+
build-android:
51+
name: Android
52+
runs-on: ubuntu-22.04
53+
steps:
54+
- name: Git checkout
55+
uses: actions/checkout@v4
56+
with:
57+
submodules: 'true'
58+
59+
- name: Build layer_example
60+
run: |
61+
cd layer_example
62+
bash ./android_build.sh Release

0 commit comments

Comments
 (0)