upload to upstream #4
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- 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 |