-
Notifications
You must be signed in to change notification settings - Fork 14
56 lines (47 loc) · 1.3 KB
/
spread.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Spread
concurrency:
group: ${{ github.workflow }}-${{ github.event.number && format('pr{0}', github.event.number) || github.run_id }}
cancel-in-progress: true
on:
push:
branches:
- main
- release/[0-9]+.[0-9]+
tags:
- v[0-9]+[0-9]+.[0-9]+
merge_group:
types: [checks_requested]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
BuildAndTest:
strategy:
fail-fast: false
matrix:
spread-task:
- lxd:ubuntu-23.10:...:gcc
- lxd:ubuntu-24.04:...:gcc
- lxd:ubuntu-24.04:...:clang
- lxd:fedora-39:...:gcc
- lxd:fedora-40:...:gcc
- lxd:fedora-rawhide:...:gcc
- lxd:alpine-3.18:...:gcc
- lxd:ubuntu-devel:...:gcc
- lxd:ubuntu-devel:...:clang
- lxd:alpine-edge:...:gcc
runs-on: ubuntu-latest
env:
DEBFULLNAME: "Mir CI Bot"
DEBEMAIL: "[email protected]"
steps:
- name: Set up LXD
uses: canonical/setup-lxd@main
- name: Set up Spread
run: |
set -euo pipefail
sudo snap install spread-mir-ci
sudo snap run lxd init --auto
- name: Check out code
uses: actions/checkout@v4
- name: Run Spread task
run: snap run spread-mir-ci.spread -v ${{ matrix.spread-task }}