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: use charmcraft from the store for weekly spread runs #2031

Merged
merged 1 commit into from
Dec 12, 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
31 changes: 9 additions & 22 deletions .github/workflows/spread-large.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,31 +6,19 @@ on:

workflow_dispatch:

# If we're editing this file, run it on the pull request.
pull_request:
paths:
- .github/workflows/spread-large.yaml

# Only ever run one of this test at a time.
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
snap-build:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build snap
uses: snapcore/action-build@v1
id: charmcraft
- name: Upload snap artifact
uses: actions/upload-artifact@v4
with:
name: snap
path: ${{ steps.charmcraft.outputs.snap }}

pack-charm:
spread:
runs-on: spread-installed
needs: [snap-build]
strategy:
fail-fast: false
# Each of these tasks can spin up several machines in spread.
Expand All @@ -54,10 +42,9 @@ jobs:
with:
fetch-depth: 0
submodules: true
- name: Download snap artifact
uses: actions/download-artifact@v4
with:
name: snap
- name: Download charmcraft snap
run: |
snap download --channel=latest/edge charmcraft
- name: Spread k8s operator
env:
LAUNCHPAD_TOKEN: ${{ secrets.LAUNCHPAD_TOKEN }}
Expand Down
Loading