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 602bb53
Show file tree
Hide file tree
Showing 6 changed files with 74 additions and 3 deletions.
File renamed without changes.
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
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,14 @@ 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:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
steps:
- name: Finish
uses: benc-uk/workflow-dispatch@v1
with:
workflow: minimal
token: ${{ secrets.GITHUB_TOKEN }}
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
27 changes: 27 additions & 0 deletions .github/workflows/minimal.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

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
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
##############################################################################
# GitHub Actions Workflow for Boost.Geometry to build minimal tests with GCC
#
# Copyright (c) 2020 Mateusz Loskot <mateusz@loskot.net>
# 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
# http://www.boost.org/LICENSE_1_0.txt)
##############################################################################
name: test-minimal

on: [push, pull_request]

jobs:
build:
name: test
runs-on: ubuntu-latest
steps:
- name: Test
run: |
echo 0
finish:
runs-on: ubuntu-latest
needs: build
if: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' }}
steps:
- name: Finish
uses: benc-uk/workflow-dispatch@v1
with:
workflow: minimal
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 602bb53

Please sign in to comment.