Skip to content

Commit

Permalink
Use build_charms_with_cache action
Browse files Browse the repository at this point in the history
From the Data Platform team. This caches the charmcraft build env, so
should speed up our builds considerably.
  • Loading branch information
barrettj12 committed Mar 29, 2023
1 parent 32c5052 commit 64ff8e7
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 64ff8e7

Please sign in to comment.