Skip to content

Commit

Permalink
Merge pull request #22 from juju/charmcraft-cache
Browse files Browse the repository at this point in the history
[CI] Use build_charms_with_cache reusable workflow
  • Loading branch information
barrettj12 authored Mar 29, 2023
2 parents ad76fa4 + 64ff8e7 commit d41c339
Showing 1 changed file with 5 additions and 25 deletions.
30 changes: 5 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,10 @@ on:
jobs:

build:
name: "Build"
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install dependencies
run: |
python3 --version
sudo snap install charmcraft --classic
- name: Set up LXD
uses: canonical/setup-lxd@90d76101915da56a42a562ba766b1a77019242fd

- name: Pack charm
run: |
charmcraft pack -v
- name: Upload packed charm as artifact
uses: actions/upload-artifact@v3
with:
name: charm
path: '*.charm'
name: Build charms
uses: canonical/data-platform-workflows/.github/workflows/build_charms_with_cache.yaml@v1
with:
artifact-name: charm-packed

bootstrap:
name: "Bootstrap"
Expand All @@ -50,7 +30,7 @@ jobs:
id: download
uses: actions/download-artifact@v3
with:
name: charm
name: ${{ needs.build.outputs.artifact-name }}

- name: Rename charm file
run: |
Expand Down

0 comments on commit d41c339

Please sign in to comment.