Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yaml-cpp
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
yaml-cpp
Commits
f8e1a7be
Unverified
Commit
f8e1a7be
authored
Jan 28, 2022
by
TheVice
Committed by
GitHub
Jan 27, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add MinGW to build pipeline
Also refactor the build action to use a matrix.
parent
bce601f2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
18 deletions
+19
-18
.github/workflows/build.yml
+19
-18
No files found.
.github/workflows/build.yml
View file @
f8e1a7be
...
...
@@ -10,31 +10,32 @@ jobs:
strategy
:
matrix
:
os
:
[
ubuntu-latest
,
windows-latest
,
macos-latest
]
build
:
[
static
,
shared
]
generator
:
[
"
Default
Generator"
,
"
MinGW
Makefiles"
]
exclude
:
-
os
:
macos-latest
build
:
shared
-
os
:
macos-latest
generator
:
"
MinGW
Makefiles"
-
os
:
ubuntu-latest
generator
:
"
MinGW
Makefiles"
env
:
YAML_BUILD_SHARED_LIBS
:
${{ matrix.build == 'shared' && 'ON' || 'OFF' }}
CMAKE_GENERATOR
:
>-
${{format(matrix.generator != 'Default Generator' && '-G "{0}"' || '', matrix.generator)}}
runs-on
:
${{ matrix.os }}
steps
:
-
uses
:
actions/checkout@v2
-
name
:
Build static
shell
:
bash
run
:
|
mkdir -p build && cd build
cmake ..
cmake --build . --parallel 4
-
name
:
Test static
shell
:
bash
run
:
cd build && ctest --output-on-failure
-
name
:
Get number of CPU cores
uses
:
SimenB/github-actions-cpu-cores@v1
-
name
:
Build
shared
-
name
:
Build
shell
:
bash
run
:
|
rm -rf build && mkdir -p build && cd build
cmake .. -DYAML_BUILD_SHARED_LIBS=ON
cmake --build . --parallel 4
cmake ${{ env.CMAKE_GENERATOR }} -S "${{ github.workspace }}" -B build -DYAML_BUILD_SHARED_LIBS=${{ env.YAML_BUILD_SHARED_LIBS }}
cd build && cmake --build . --parallel ${{ steps.cpu-cores.outputs.count }}
# tests are failing for unknown reasons
-
if
:
matrix.os != 'macos-latest'
name
:
Test shared
-
name
:
Test
shell
:
bash
run
:
cd build && ctest --output-on-failure
# test all ASAP
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment