-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (34 loc) · 997 Bytes
/
c-cpp.yml
File metadata and controls
41 lines (34 loc) · 997 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: C/C++ CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Clone fast_io
run: git clone -b next https://github.com/cppfastio/fast_io
- name: Install ninja-build tool
uses: seanmiddleditch/gha-setup-ninja@v4
- name: cmake
run: cmake -GNinja . -DCMAKE_BUILD_TYPE=Release -DFAST_IO_DIR=fast_io
- name: ninja
run: ninja
- name: ctest running bench
run: ctest --verbose
windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: Clone fast_io
run: git clone -b next https://github.com/cppfastio/fast_io
- name: cmake
run: cmake -GNinja . -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=cl -DCMAKE_CXX_COMPILER=cl -DFAST_IO_DIR=fast_io
- name: ninja
run: ninja
- name: ctest running bench
run: ctest --verbose