From 5220cbccb58cedab1657df92771ea11cc221cfeb Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Tue, 17 Dec 2024 17:30:14 +0100 Subject: [PATCH] fix: experiment with reusable workflow --- .github/workflows/build-shared.yaml | 5 +---- .github/workflows/ci.yml | 6 +++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-shared.yaml b/.github/workflows/build-shared.yaml index bc07b2a7c..902479231 100644 --- a/.github/workflows/build-shared.yaml +++ b/.github/workflows/build-shared.yaml @@ -14,10 +14,7 @@ name: build-shared on: - push: - branches: [ '**' ] - pull_request: - branches: [ '**' ] + workflow_call: jobs: build: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f329a5a9..75a47c8b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -296,6 +296,10 @@ jobs: python3 ./build/tests/no_router.py timeout-minutes: 5 + build_shared: + name: Build shared libs + uses: ./.github/workflows/build-shared.yaml + # NOTE: In GitHub repository settings, the "Require status checks to pass # before merging" branch protection rule ensures that commits are only merged # from branches where specific status checks have passed. These checks are @@ -304,7 +308,7 @@ jobs: ci: name: CI status checks runs-on: ubuntu-latest - needs: [run_tests, check_format, c99_build, raweth_build, zenoh_build, modular_build, unstable_build, st_build, fragment_test, attachment_test, memory_leak_test, no_router] + needs: [run_tests, check_format, c99_build, raweth_build, zenoh_build, modular_build, unstable_build, st_build, fragment_test, attachment_test, memory_leak_test, no_router, build_shared] if: always() steps: - name: Check whether all jobs pass