Skip to content

Commit ab495de

Browse files
committed
add ci
1 parent 360b773 commit ab495de

File tree

3 files changed

+93
-0
lines changed

3 files changed

+93
-0
lines changed

.github/workflows/linux-clang.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Ubuntu (clang)
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
strategy:
12+
matrix:
13+
mode: [ Debug, Release ]
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- name: check out
18+
uses: actions/checkout@v3
19+
20+
- name: Install Dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install curl libssl-dev libcurl4-openssl-dev libmxml-dev libapr1-dev libaprutil1-dev
24+
25+
- name: configure cmake
26+
run: CXX=clang++ CC=clang cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }}
27+
28+
- name: build project
29+
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }}
30+
31+

.github/workflows/linux-gcc.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Ubuntu (gcc)
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
ubuntu_gcc:
11+
strategy:
12+
matrix:
13+
mode: [ Debug, Release ]
14+
runs-on: [ubuntu-16.04, ubuntu-18.04, ubuntu-22.04]
15+
16+
steps:
17+
- name: check out
18+
uses: actions/checkout@v3
19+
20+
- name: Install Dependencies
21+
run: |
22+
sudo apt-get update
23+
sudo apt-get install curl libssl-dev libcurl4-openssl-dev libmxml-dev libapr1-dev libaprutil1-dev
24+
25+
- name: checkout gcc version
26+
run: gcc --version
27+
28+
- name: configure cmake
29+
run: CXX=g++ CC=gcc cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -DCMAKE_CXX_STANDARD=${{ matrix.cpp_version }}
30+
31+
- name: build project
32+
run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.mode }}

.github/workflows/windows.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Windows Server 2022
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: windows-latest
12+
13+
strategy:
14+
matrix:
15+
mode: [Debug, Release]
16+
arch: [x64, Win32]
17+
18+
env:
19+
CXX: cl.exe
20+
CC: cl.exe
21+
22+
steps:
23+
- name: check out
24+
uses: actions/checkout@v3
25+
26+
- name: generate project
27+
run: cmake -B ${{ github.workspace }}\build -DCMAKE_BUILD_TYPE=${{ matrix.mode }} -A${{ matrix.arch }}
28+
29+
- name: build project
30+
run: cmake --build ${{ github.workspace }}\build --config ${{ matrix.mode }}

0 commit comments

Comments
 (0)