|
10 | 10 | env: |
11 | 11 | CACHE_DIR: /srv/gh-runners/quic-yocto |
12 | 12 | KAS_REPO_REF_DIR: /srv/gh-runners/quic-yocto/kas-mirrors |
| 13 | + KAS_CONTAINER: /srv/gh-runners/quic-yocto/kas-mirrors/kas-container |
13 | 14 |
|
14 | 15 | jobs: |
15 | 16 | kas-setup: |
16 | 17 | if: github.repository == 'qualcomm-linux/meta-qcom' |
17 | 18 | runs-on: [self-hosted, x86] |
18 | 19 | steps: |
| 20 | + - name: Update kas-container |
| 21 | + run: | |
| 22 | + LATEST=$(git ls-remote --tags --refs --sort="v:refname" https://github.com/siemens/kas | tail -n1 | sed 's/.*\///') |
| 23 | + wget -qO ${KAS_CONTAINER} https://raw.githubusercontent.com/siemens/kas/refs/tags/$LATEST/kas-container |
| 24 | + chmod +x ${KAS_CONTAINER} |
| 25 | +
|
19 | 26 | - name: Update kas mirrors |
20 | 27 | run: | |
21 | 28 | for r in $(find ${KAS_REPO_REF_DIR}/* -maxdepth 0 -type d); do |
|
29 | 36 |
|
30 | 37 | - name: Run kas lock |
31 | 38 | run: | |
32 | | - kas dump --update --lock --inplace ci/base.yml |
| 39 | + ${KAS_CONTAINER} dump --update --lock --inplace ci/base.yml |
33 | 40 |
|
34 | 41 | - uses: actions/upload-artifact@v4 |
35 | 42 | with: |
|
52 | 59 |
|
53 | 60 | - name: Run yocto-check-layer |
54 | 61 | run: | |
55 | | - ci/kas-shell-helper.sh ci/yocto-check-layer.sh |
| 62 | + ci/kas-container-shell-helper.sh ci/yocto-check-layer.sh |
56 | 63 |
|
57 | 64 | yocto-patchreview: |
58 | 65 | needs: kas-setup |
|
70 | 77 |
|
71 | 78 | - name: Run Yocto patchreview |
72 | 79 | run: | |
73 | | - ci/kas-shell-helper.sh ci/yocto-patchreview.sh |
| 80 | + ci/kas-container-shell-helper.sh ci/yocto-patchreview.sh |
74 | 81 |
|
75 | 82 | compile: |
76 | 83 | needs: kas-setup |
@@ -107,14 +114,14 @@ jobs: |
107 | 114 | export SSTATE_DIR=${CACHE_DIR}/sstate-cache |
108 | 115 | export KAS_WORK_DIR=$PWD/../kas |
109 | 116 | mkdir $KAS_WORK_DIR |
110 | | - kas dump --resolve-env --resolve-local --resolve-refs \ |
| 117 | + ${KAS_CONTAINER} dump --resolve-env --resolve-local --resolve-refs \ |
111 | 118 | ci/mirror.yml:ci/${{ matrix.machine }}.yml > kas-build.yml |
112 | | - kas build ci/mirror.yml:ci/${{ matrix.machine }}.yml |
113 | | - ci/kas-shell-helper.sh ci/yocto-pybootchartgui.sh |
| 119 | + ${KAS_CONTAINER} build ci/mirror.yml:ci/${{ matrix.machine }}.yml |
| 120 | + ci/kas-container-shell-helper.sh ci/yocto-pybootchartgui.sh |
114 | 121 | mv $KAS_WORK_DIR/build/buildchart.svg . |
115 | 122 |
|
116 | 123 | if [ "${{ matrix.machine }}" = "qcom-armv8a" ]; then |
117 | | - kas build ci/mirror.yml:ci/${{ matrix.machine }}.yml:ci/initramfs-test.yml |
| 124 | + ${KAS_CONTAINER} build ci/mirror.yml:ci/${{ matrix.machine }}.yml:ci/initramfs-test.yml |
118 | 125 | fi |
119 | 126 |
|
120 | 127 | - uses: actions/upload-artifact@v4 |
|
0 commit comments