Skip to content

Commit 4161726

Browse files
authored
Create c-cpp.yml
1 parent 2386a5d commit 4161726

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/c-cpp.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: C/C++ CI
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
ubuntu:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Clone fast_io
17+
run: git clone -b next https://github.com/trcrsired/fast_io
18+
- name: Install ninja-build tool
19+
uses: seanmiddleditch/gha-setup-ninja@v4
20+
- name: cmake
21+
run: cmake -GNinja . -DCMAKE_BUILD_TYPE=Release -DFAST_IO_DIR=fast_io
22+
- name: ninja
23+
run: ninja
24+
- name: ctest running bench
25+
run: ctest --verbose
26+
27+
windows:
28+
29+
runs-on: windows-latest
30+
31+
steps:
32+
- uses: actions/checkout@v2
33+
- uses: ilammy/msvc-dev-cmd@v1.4.1
34+
- name: Clone fast_io
35+
run: git clone -b next https://github.com/trcrsired/fast_io
36+
- name: cmake
37+
run: cmake -GNinja . -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DFAST_IO_DIR=fast_io
38+
- name: ninja
39+
run: ninja
40+
- name: ctest running bench
41+
run: ctest --verbose

0 commit comments

Comments
 (0)