Update CI config

This commit is contained in:
Victor Zverovich 2020-11-03 10:45:16 -08:00
parent ab4405bea5
commit c8703ba40b
4 changed files with 71 additions and 10 deletions

View File

@ -1,3 +1,5 @@
name: linux
on: [push]
env:
@ -5,10 +7,7 @@ env:
jobs:
build:
runs-on: ${{matrix.os}}
strategy:
matrix:
os: [ubuntu-18.04, macos-10.15, windows-2019]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
@ -17,18 +16,13 @@ jobs:
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -C $BUILD_TYPE

28
.github/workflows/macos.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: linux
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: macos-10.15
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{runner.workspace}}/build
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{runner.workspace}}/build
run: ctest -C $BUILD_TYPE

33
.github/workflows/windows.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: linux
on: [push]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- name: Create Build Environment
run: cmake -E make_directory ${{runner.workspace}}/build
- name: Configure CMake
# Use a bash shell so we can use the same syntax for environment variable
# access regardless of the host operating system
shell: bash
working-directory: ${{runner.workspace}}/build
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE
- name: Build
working-directory: ${{runner.workspace}}/build
shell: bash
run: cmake --build . --config $BUILD_TYPE
- name: Test
working-directory: ${{runner.workspace}}/build
shell: bash
run: ctest -C $BUILD_TYPE

View File

@ -1,7 +1,13 @@
{fmt}
=====
.. image:: https://github.com/fmtlib/fmt/workflows/.github/workflows/linux.yml/badge.svg
.. image:: https://github.com/fmtlib/fmt/workflows/linux/badge.svg
:target: https://github.com/fmtlib/fmt/actions
.. image:: https://github.com/fmtlib/fmt/workflows/macos/badge.svg
:target: https://github.com/fmtlib/fmt/actions
.. image:: https://github.com/fmtlib/fmt/workflows/windows/badge.svg
:target: https://github.com/fmtlib/fmt/actions
.. image:: https://travis-ci.org/fmtlib/fmt.png?branch=master