From 97ba3768dc47435a8a4df6c0e86b93a03af9f7ca Mon Sep 17 00:00:00 2001 From: Daniela Plascencia Date: Thu, 16 Jan 2025 19:01:31 +0100 Subject: [PATCH] ci: remove wrapper around get charm paths and build with cache workflows This commit removes the extra abstraction of the get-charm-paths action and build_charm.yaml reusable workflow to avoid potential incompatibilities and sync issues with the data platforms workflows. --- .github/workflows/on_pull_request.yaml | 28 +++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/on_pull_request.yaml b/.github/workflows/on_pull_request.yaml index 9bcc2213..af963272 100644 --- a/.github/workflows/on_pull_request.yaml +++ b/.github/workflows/on_pull_request.yaml @@ -8,9 +8,31 @@ on: pull_request: jobs: - get-paths-and-build: - name: Get charm paths and build with cache - uses: canonical/charmed-kubeflow-workflows/.github/workflows/get_charms_build_with_cache.yaml@main + get-charm-paths: + name: Generate the Charm Matrix content + runs-on: ubuntu-latest + outputs: + charm_paths: ${{ steps.get-charm-paths.outputs.charm-paths }} + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Get paths for all charms in this repo + id: get-charm-paths + uses: canonical/kubeflow-ci/actions/get-charm-paths@main + + build: + name: Build charms + uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v24.0.5 + needs: get-charm-paths + strategy: + fail-fast: false + matrix: + charm: ${{ fromJson(needs.get-charm-paths.outputs.charm_paths) }} + with: + cache: true + charmcraft-snap-channel: 3.x/stable + path-to-charm-directory: ./${{ matrix.charm }} tests: name: Run Tests