Skip to content

Commit

Permalink
ci: remove wrapper around get charm paths and build with cache workflows
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
DnPlas committed Jan 16, 2025
1 parent 9c543d8 commit 97ba376
Showing 1 changed file with 25 additions and 3 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/on_pull_request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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
Expand Down

0 comments on commit 97ba376

Please sign in to comment.