-
Notifications
You must be signed in to change notification settings - Fork 49
50 lines (49 loc) · 1.63 KB
/
armhf_lxd.yaml
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
on: [push, pull_request]
jobs:
build_job:
strategy:
fail-fast: false
matrix:
include:
# series: "series24"
- series: "series22"
snapcraft_channel: "8.x"
runner_os: "ubuntu-22.04"
- series: "series20"
snapcraft_channel: "8.x"
runner_os: "ubuntu-22.04"
- series: "series18"
snapcraft_channel: "4.x"
runner_os: "ubuntu-22.04"
- snapcraft_channel: "4.x"
series: "series16"
runner_os: "ubuntu-20.04"
runs-on: ${{ matrix.runner_os }}
name: "Build: ${{ matrix.series }} (Snapcraft ${{ matrix.snapcraft_channel }})"
steps:
- name: Ubuntu 18.04 upgrade Python
if: ${{ matrix.runner_os == 'ubuntu-20.04' }}
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt -y update
sudo apt install -y -qq python3.10
sudo update-alternatives --set python /usr/bin/python3.10
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare the repo
run: |
cd checkbox-core-snap/
./prepare.sh ${{ matrix.series }}
- uses: docker/setup-qemu-action@v1
- uses: diddlesnaps/snapcraft-multiarch-action@v1
with:
architecture: armhf
snapcraft-channel: ${{ matrix.snapcraft_channel }}
path: "checkbox-core-snap/${{matrix.series}}"
- name: Show the artifact
run: |
ls checkbox-core-snap/series22
- uses: actions/upload-artifact@v4
with:
path: "checkbox-core-snap/${{matrix.series}}/*.snap"