Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: create a new workflow for getting charm paths and building them with cache #88

Merged
merged 2 commits into from
Dec 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/get_charms_build_with_cache.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build charms with cache

on:
workflow_call:

jobs:

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@v21.0.0
needs: get-charm-paths
strategy:
fail-fast: false
NohaIhab marked this conversation as resolved.
Show resolved Hide resolved
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 }}