From: Lev Stipakov Date: Sun, 5 Jun 2022 03:40:13 +0300 Message-Id: <20220605004013.319-1-lstipakov@...277...> In-Reply-To: <3363e69c-1788-2ced-e640-8523570b0d8c@...515...> References: <3363e69c-1788-2ced-e640-8523570b0d8c@...515...> Subject: [Openvpn-devel] [PATCH v2] GitHub Actions: trigger openvpn-build GHA on success List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: openvpn-devel@lists.sourceforge.net Cc: Lev Stipakov From: Lev Stipakov After successfult builds on all platforms, start openvpn-build GHA which produces Windows MSI installers. Signed-off-by: Lev Stipakov --- v2: - bring pull_request trigger back - simplify trigger_openvpn_build run condition .github/workflows/build.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d34f4e9a..6c267a61 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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@...2620... + with: + token: ${{ secrets.OPENVPN_BUILD_REPO_DISPATCH }} + repository: openvpn/openvpn-build + event-type: openvpn-commit -- 2.23.0.windows.1