Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
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
Chen Yisong
benchmark
Commits
4986d0b2
Unverified
Commit
4986d0b2
authored
Aug 18, 2020
by
Dominic Hamon
Committed by
GitHub
Aug 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Create build-and-test.yml (#1013)
First attempt at a non-travis/non appveyor CI solution
parent
1302d2ce
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
build-and-test.yml
.github/workflows/build-and-test.yml
+38
-0
No files found.
.github/workflows/build-and-test.yml
0 → 100644
View file @
4986d0b2
name
:
build-and-test
on
:
push
:
branches
:
[
master
]
pull_request
:
branches
:
[
master
]
jobs
:
job
:
# TODO(dominic): Extend this to include compiler and set through env: CC/CXX.
name
:
${{ matrix.os }}.${{ matrix.build_type }}
runs-on
:
${{ matrix.os }}
strategy
:
fail-fast
:
false
matrix
:
os
:
[
ubuntu-latest
,
ubuntu-16.04
,
ubuntu-20.04
,
macos-latest
,
windows-latest
]
build_type
:
[
'
Release'
,
'
Debug'
]
steps
:
-
uses
:
actions/checkout@v2
-
name
:
create build environment
run
:
cmake -E make_directory ${{ runner.workspace }}/_build
-
name
:
configure cmake
shell
:
bash
working-directory
:
${{ runner.workspace }}/_build
run
:
cmake -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-
name
:
build
shell
:
bash
working-directory
:
${{ runner.workspace }}/_build
run
:
cmake --build . --config ${{ matrix.build_type }}
-
name
:
test
shell
:
bash
working-directory
:
${{ runner.workspace }}/_build
run
:
ctest -C ${{ matrix.build_type }}
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