diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index fec8e159..22d061bb 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 00000000..95889a15 --- /dev/null +++ b/.github/workflows/macos.yml @@ -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 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml new file mode 100644 index 00000000..0b302c37 --- /dev/null +++ b/.github/workflows/windows.yml @@ -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 diff --git a/README.rst b/README.rst index 94e84d32..45b3cca9 100644 --- a/README.rst +++ b/README.rst @@ -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