You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/08/16 07:59:25 UTC

[plc4x] branch develop updated: chore(build): add a second un-parallel call to the first build try to avoid wrong warnings

This is an automated email from the ASF dual-hosted git repository.

sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 62722c718 chore(build): add a second un-parallel call to the first build try to avoid wrong warnings
62722c718 is described below

commit 62722c71805baff9e7ab0b55a2a3c17ea6e83a49
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Aug 16 09:59:18 2022 +0200

    chore(build): add a second un-parallel call to the first build try to avoid wrong warnings
---
 .github/workflows/ensure-platforms.yml | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/.github/workflows/ensure-platforms.yml b/.github/workflows/ensure-platforms.yml
index 1aa37ad50..9249819e6 100644
--- a/.github/workflows/ensure-platforms.yml
+++ b/.github/workflows/ensure-platforms.yml
@@ -109,8 +109,11 @@ jobs:
               core.setOutput('extra_options', ``)
             }
 
+      # Note: due to github has no concept of recovering from a fail even if we have our fallback below we append a second un-parallel run behind this to be sure that it works with all checks. Only if that fails too we are ok with a "red" (which should be yellow) cross indicating a problem
       - name: Run mvnw
-        run: ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} ${{ steps.extra_options.outputs.extra_options }} -T 1C -B -P'with-sandbox,with-c,with-go,enable-all-checks' ${{ steps.platform_opts.outputs.platform_opts }} install
+        run: |
+          ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} ${{ steps.extra_options.outputs.extra_options }} -T 1C -B -P'with-sandbox,with-c,with-go,enable-all-checks' ${{ steps.platform_opts.outputs.platform_opts }} install \
+          || ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} ${{ steps.extra_options.outputs.extra_options }} -B -P'with-sandbox,with-c,with-go,enable-all-checks' ${{ steps.platform_opts.outputs.platform_opts }} install
 
       - name: Run mvnv unparallel
         if: ${{ failure() }}