From e842301c0479df2abc1603e218dffccbdba85636 Mon Sep 17 00:00:00 2001 From: Diogo Mendes Matsubara Date: Tue, 17 Dec 2024 17:50:33 +0100 Subject: [PATCH] fix: make integration and build-static reusable --- .github/workflows/build-static.yaml | 5 +---- .github/workflows/ci.yml | 12 +++++++++++- .github/workflows/integration.yaml | 7 +------ 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build-static.yaml b/.github/workflows/build-static.yaml index 4b853c7a7..bfb13e433 100644 --- a/.github/workflows/build-static.yaml +++ b/.github/workflows/build-static.yaml @@ -14,10 +14,7 @@ name: build-static on: - push: - branches: [ '**' ] - pull_request: - branches: [ '**' ] + workflow_call: jobs: build: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75a47c8b6..f287eb401 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -18,6 +18,8 @@ on: branches: ["**"] pull_request: branches: ["**"] + schedule: + - cron: "0 6 * * 1-5" jobs: run_tests: @@ -300,6 +302,14 @@ jobs: name: Build shared libs uses: ./.github/workflows/build-shared.yaml + build_static: + name: Build shared libs + uses: ./.github/workflows/build-static.yaml + + integration: + name: Run integration tests + uses: ./.github/workflows/integration.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 @@ -308,7 +318,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, build_shared] + 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, build_static, integration] if: always() steps: - name: Check whether all jobs pass diff --git a/.github/workflows/integration.yaml b/.github/workflows/integration.yaml index 8b938a042..021674289 100644 --- a/.github/workflows/integration.yaml +++ b/.github/workflows/integration.yaml @@ -14,12 +14,7 @@ name: integration on: - push: - branches: ["**"] - pull_request: - branches: ["**"] - schedule: - - cron: "0 6 * * 1-5" + workflow_call: jobs: build: