Skip to content

Commit f5e68b0

Browse files
committed
add CI
1 parent 3eac29b commit f5e68b0

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/premerge.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Premerge
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
env:
8+
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
9+
BUILD_TYPE: Release
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install LLVM
19+
run: |
20+
wget https://apt.llvm.org/llvm.sh
21+
chmod +x llvm.sh
22+
sudo ./llvm.sh 20 all
23+
24+
- name: Configure CMake
25+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
26+
27+
- name: Build
28+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
29+
30+
- name: Test
31+
working-directory: ${{github.workspace}}/build
32+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} --target test
33+

0 commit comments

Comments
 (0)