Skip to content
Draft
Show file tree
Hide file tree
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
17 changes: 12 additions & 5 deletions .github/workflows/spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ on:

jobs:
snap-build:
runs-on: [self-hosted, amd64]
strategy:
matrix:
arch: [amd64, arm64]
runs-on: [self-hosted, "${{ matrix.arch }}"]
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand All @@ -20,7 +23,7 @@ jobs:
- name: Upload snap artifact
uses: actions/upload-artifact@v4
with:
name: snap
name: snap-${{ matrix.arch }}
path: ${{ steps.snap.outputs.snap }}

snap-tests:
Expand All @@ -29,8 +32,12 @@ jobs:
strategy:
fail-fast: false
matrix:
spread:
- "google:"
arch: [amd64, arm64]
include:
- arch: amd64
spread: "google:"
- arch: arm64
spread: "google-arm:"

steps:
- name: Cleanup job workspace
Expand All @@ -47,7 +54,7 @@ jobs:
- name: Download snap artifact
uses: actions/download-artifact@v4
with:
name: snap
name: snap-${{ matrix.arch }}

- name: Run spread
run: |
Expand Down
11 changes: 11 additions & 0 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ exclude:
- .venv

backends:
google-arm:
type: google
key: '$(HOST: echo "$SPREAD_GOOGLE_KEY")'
location: snapd-spread/us-east1-b
halt-timeout: 2h
systems:
- ubuntu-24.04-arm64:
image: ubuntu-24.04-arm-64
workers: 4
storage: 40G

google:
key: '$(HOST: echo "$SPREAD_GOOGLE_KEY")'
location: snapd-spread/us-east1-b
Expand Down
Loading