Skip to content

Commit

Permalink
[ci] GH single badge generator test.
Browse files Browse the repository at this point in the history
  • Loading branch information
awulkiew committed Apr 27, 2021
1 parent 02b88e3 commit 4720ece
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/minimal-clang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# GitHub Actions Workflow for Boost.Geometry to build minimal tests with Clang
#
# Copyright (c) 2020 Mateusz Loskot <mateusz@loskot.net>
# Copyright (c) 2020 Adam Wulkiewicz, Lodz, Poland
# Copyright (c) 2020-2021 Adam Wulkiewicz, Lodz, Poland
#
# Use, modification and distribution is subject to the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/minimal-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
##############################################################################
# GitHub Actions Workflow for Boost.Geometry to gether results of workflows.
#
# Copyright (c) 2021 Adam Wulkiewicz, Lodz, Poland
#
# Use, modification and distribution is subject to the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
##############################################################################
name: minimal-develop

on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: badges
run: |
curl -o clang-test-minimal.svg https://github.com/boostorg/geometry/workflows/clang-test-minimal/badge.svg?branch=develop
curl -o gcc-test-minimal.svg https://github.com/boostorg/geometry/workflows/gcc-test-minimal/badge.svg?branch=develop
curl -o msvc-test-minimal.svg https://github.com/boostorg/geometry/workflows/msvc-test-minimal/badge.svg?branch=develop
ls
- name: check
run: |
ls
grep -Fq 'passing' clang-test-minimal.svg && grep -Fq 'passing' gcc-test-minimal.svg && grep -Fq 'passing' msvc-test-minimal.svg
24 changes: 23 additions & 1 deletion .github/workflows/minimal-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# GitHub Actions Workflow for Boost.Geometry to build minimal tests with GCC
#
# Copyright (c) 2020 Mateusz Loskot <mateusz@loskot.net>
# Copyright (c) 2020 Adam Wulkiewicz, Lodz, Poland
# Copyright (c) 2020-2021 Adam Wulkiewicz, Lodz, Poland
#
# Use, modification and distribution is subject to the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Expand Down Expand Up @@ -105,3 +105,25 @@ jobs:
run: |
cd $BOOST_ROOT
$BOOST_ROOT/b2 toolset=${{ matrix.b2_toolset }} cxxstd=${{ matrix.b2_cxxstd }} variant=debug,release address-model=32,64 libs/geometry/test//minimal
finish_master:
runs-on: ubuntu-latest
needs: build
if: ${{ always() && github.ref == 'refs/heads/master' }}
steps:
- name: Finish
uses: benc-uk/workflow-dispatch@v1
with:
workflow: minimal-master
token: ${{ secrets.GITHUB_TOKEN }}

finish_develop:
runs-on: ubuntu-latest
needs: build
if: ${{ always() && github.ref == 'refs/heads/develop' }}
steps:
- name: Finish
uses: benc-uk/workflow-dispatch@v1
with:
workflow: minimal-develop
token: ${{ secrets.GITHUB_TOKEN }}
27 changes: 27 additions & 0 deletions .github/workflows/minimal-master.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
##############################################################################
# GitHub Actions Workflow for Boost.Geometry to gether results of workflows.
#
# Copyright (c) 2021 Adam Wulkiewicz, Lodz, Poland
#
# Use, modification and distribution is subject to the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
##############################################################################
name: minimal-develop

on: [workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: badges
run: |
curl -o clang-test-minimal.svg https://github.com/boostorg/geometry/workflows/clang-test-minimal/badge.svg?branch=master
curl -o gcc-test-minimal.svg https://github.com/boostorg/geometry/workflows/gcc-test-minimal/badge.svg?branch=master
curl -o msvc-test-minimal.svg https://github.com/boostorg/geometry/workflows/msvc-test-minimal/badge.svg?branch=master
ls
- name: check
run: |
ls
grep -Fq 'passing' clang-test-minimal.svg && grep -Fq 'passing' gcc-test-minimal.svg && grep -Fq 'passing' msvc-test-minimal.svg
2 changes: 1 addition & 1 deletion .github/workflows/minimal-msvc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# GitHub Actions Workflow for Boost.Geometry to build minimal tests with MSVC
#
# Copyright (c) 2020 Mateusz Loskot <mateusz@loskot.net>
# Copyright (c) 2020 Adam Wulkiewicz, Lodz, Poland
# Copyright (c) 2020-2021 Adam Wulkiewicz, Lodz, Poland
#
# Use, modification and distribution is subject to the Boost Software License,
# Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
Expand Down

0 comments on commit 4720ece

Please sign in to comment.