Skip to content

Commit c5681df

Browse files
committed
Add git action for project build
1 parent db66b14 commit c5681df

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/cmake-build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build All
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
push:
7+
8+
env:
9+
CMAKE_BUILD_PARALLEL_LEVEL: 2
10+
11+
jobs:
12+
build:
13+
name: Build on Linux
14+
runs-on: ubuntu-latest
15+
strategy:
16+
fail-fast: false
17+
18+
steps:
19+
- uses: actions/checkout@v6
20+
21+
- name: Configure CMake
22+
run: cmake -B ${{github.workspace}}/build
23+
24+
- name: Build
25+
run: cmake --build ${{github.workspace}}/build --parallel ${{env.CMAKE_BUILD_PARALLEL_LEVEL}}

0 commit comments

Comments
 (0)