Merge pull request #20 from ClangTools/dev #157
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: [ master,dev ] | |
pull_request: | |
branches: [ master,dev ] | |
jobs: | |
ubuntu-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: configure | |
run: mkdir build-ubuntu && cd build-ubuntu && cmake -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_BUILD_TYPE=Release .. | |
- name: build | |
run: cmake --build build-ubuntu | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libtools-ubuntu | |
path: | | |
build-ubuntu/libTools.a | |
win-build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: configure | |
run: mkdir build-windows && cd build-windows && cmake -DLWS_WITH_SSL=OFF .. | |
- name: build | |
run: cmake --build build-windows --config Release | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libtools-windows | |
path: | | |
build-windows/Release/Tools.lib | |
macOS-build: | |
runs-on: macOS-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: configure | |
run: mkdir build-macOS && cd build-macOS && cmake -DLWS_WITH_SSL=OFF -DCMAKE_CXX_FLAGS="-Werror" -DCMAKE_BUILD_TYPE=Release .. | |
- name: build | |
run: cmake --build build-macOS | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: libtools-macOS | |
path: | | |
build-macOS/libTools.a | |
bazel-build: | |
name: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- name: run | |
uses: ngalaiko/bazel-action/1.2.1@master | |
with: | |
args: build //... |