]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
GitHub Actions: trigger openvpn-build GHA on success
authorLev Stipakov <lev@openvpn.net>
Sun, 5 Jun 2022 00:40:13 +0000 (03:40 +0300)
committerDavid Sommerseth <davids@openvpn.net>
Fri, 17 Jun 2022 11:06:18 +0000 (13:06 +0200)
After successfult builds on all platforms,
start openvpn-build GHA which produces
Windows MSI installers.

Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Samuli Seppänen <samuli@openvpn.net>
Patchwork-Id: 2508
URL: https://patchwork.openvpn.net/patch/2508/
Message-Id: <20220605004013.319-1-lstipakov@gmail.com>
Signed-off-by: David Sommerseth <davids@openvpn.net>
.github/workflows/build.yaml

index d34f4e9a9b1e7c08d7a9fd7e3e45048d21efd9b4..6c267a617c08a896f4d9b07b0d670545563fc04c 100644 (file)
@@ -1,6 +1,8 @@
 # The name of our workflow
 name: Build
-on: [push, pull_request]
+on:
+  push:
+  pull_request:
 
 jobs:
   checkuncrustify:
@@ -32,6 +34,7 @@ jobs:
       - name: Set job status
         run: test ! -s uncrustify-changes.patch
         working-directory: openvpn
+
   mingw:
     strategy:
       fail-fast: false
@@ -250,7 +253,6 @@ jobs:
       - name: make check
         run: make check
 
-
   macos:
     runs-on: macos-latest
     strategy:
@@ -344,3 +346,16 @@ jobs:
             ${{ matrix.plat }}-Output/${{env.BUILD_CONFIGURATION}}/*.dll
             ${{ matrix.plat }}-Output/${{env.BUILD_CONFIGURATION}}/*.pdb
             doc/openvpn.8.html
+
+  trigger_openvpn_build:
+    runs-on: windows-latest
+    needs: [checkuncrustify, mingw, ubuntu, ubuntu-clang-asan, macos, msvc]
+    if: ${{ github.event_name != 'pull_request' && github.repository == 'openvpn/openvpn' && github.ref == 'refs/heads/master' }}
+
+    steps:
+    - name: Repository Dispatch
+      uses: peter-evans/repository-dispatch@v2
+      with:
+        token: ${{ secrets.OPENVPN_BUILD_REPO_DISPATCH }}
+        repository: openvpn/openvpn-build
+        event-type: openvpn-commit