forked from meta-homeassistant/meta-homeassistant
-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (61 loc) · 2.02 KB
/
kas.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
57
58
59
60
61
62
63
64
65
66
67
name: CI
on: [push, pull_request]
jobs:
build:
timeout-minutes: 360
runs-on: ubuntu-latest
strategy:
matrix:
yocto-version: [main]
machine: [qemu, container]
steps:
- name: Reclaim the bytes
uses: data-intuitive/reclaim-the-bytes@v2
with:
remove-hosted-tool-cache: true
remove-go: true
remove-codeql: true
remove-powershell: true
remove-android-sdk: true
remove-haskell-ghc: true
remove-swift: true
remove-dotnet: true
remove-docker-images: true
remove-swap: false
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y gawk wget git diffstat unzip texinfo gcc build-essential \
chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git \
python3-jinja2 libegl1-mesa libsdl1.2-dev xterm python3-subunit mesa-common-dev zstd liblz4-tool
df -h
- uses: actions/checkout@v1
- name: Install Kas
run: |
sudo pip3 install kas
- name: Restore sstate cache
id: cache-sstate-restore
uses: actions/cache/restore@v4
with:
path: |
sstate
key: sstate-${{ matrix.yocto-version }}-${{ matrix.machine }}
restore-keys: |
sstate-${{ matrix.yocto-version }}
sstate-
- name: Move sstate
run: |
mkdir -p sstate
mv sstate sstate-cache
- name: Run kas on ${{ matrix.machine }} on ${{ matrix.yocto-version }}
run: |
export SSTATE_DIR="${PWD}/sstate"
export SSTATE_MIRRORS="file://.* file://${PWD}/sstate-cache/PATH;downloadfilename=PATH"
kas build kas/homeassistant-${{ matrix.yocto-version }}.yml:kas/machine-${{ matrix.machine }}.yml:kas/ci.yml
- name: Save sstate cache
id: cache-sstate-save
uses: actions/cache/save@v4
if: always()
with:
path: |
sstate
key: ${{ steps.cache-sstate-restore.outputs.cache-primary-key }}