Skip to content

Commit

Permalink
fix: make integration and build-static reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Dec 17, 2024
1 parent 5220cbc commit e842301
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/build-static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,7 @@
name: build-static

on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]
workflow_call:

jobs:
build:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ on:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
- cron: "0 6 * * 1-5"

jobs:
run_tests:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
7 changes: 1 addition & 6 deletions .github/workflows/integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,7 @@
name: integration

on:
push:
branches: ["**"]
pull_request:
branches: ["**"]
schedule:
- cron: "0 6 * * 1-5"
workflow_call:

jobs:
build:
Expand Down

0 comments on commit e842301

Please sign in to comment.