mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 12:41:17 +00:00
Improve bazel build for Windows. (#1100)
Windows builds need some defines being set to use the static linking. Also add bazel builds and test to Github-CI.
This commit is contained in:

committed by
GitHub

parent
13626af92a
commit
420c982310
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@@ -6,7 +6,7 @@ on:
|
||||
branches: [ master ]
|
||||
workflow_dispatch:
|
||||
jobs:
|
||||
build:
|
||||
cmake-build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
@@ -39,3 +39,24 @@ jobs:
|
||||
- name: Test
|
||||
shell: bash
|
||||
run: cd build && ctest --output-on-failure
|
||||
|
||||
bazel-build:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
cd "${{ github.workspace }}"
|
||||
bazel build :all
|
||||
|
||||
- name: Test
|
||||
shell: bash
|
||||
run: |
|
||||
cd "${{ github.workspace }}"
|
||||
bazel test test
|
||||
|
||||
|
Reference in New Issue
Block a user