Skip to content

Commit

Permalink
Use separate cache for kas-uefi-sb + build kas-uefi-sb in weekly work…
Browse files Browse the repository at this point in the history
…flow

Signed-off-by: Pawel Langowski <pawel.langowski@3mdeb.com>
  • Loading branch information
PLangowski committed Feb 11, 2025
1 parent 659d293 commit 709f3bd
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,25 @@ concurrency:
group: run-only-one-workflow

jobs:
build-uefi-sb:
uses: ./.github/workflows/build.yml
with:
cacheless: true
kas-path: meta-dts/kas-uefi-sb.yml
move-build-artifacts:
needs: build-uefi-sb
runs-on:
labels: dts-builder
steps:
- name: Move UEFI SB build artifacts
run: |
mv build build-sb
build:
needs: move-build-artifacts
uses: ./.github/workflows/build.yml
with:
cacheless: true
kas-path: meta-dts/kas.yml

deploy-cache:
name: Deploy cache on cache.dasharo.com
needs: build
Expand All @@ -32,11 +45,14 @@ jobs:
shell: bash
run: |
ssh -i ~/.ssh/dts-ci-key builder@10.1.40.2 "mkdir -p cache/yocto/dts"
ssh -i ~/.ssh/dts-ci-key builder@10.1.40.2 "mkdir -p cache/yocto/dts/dts-uefi-sb"
rsync -P -e "ssh -i ~/.ssh/dts-ci-key" -rlptD --delete build/sstate-cache builder@10.1.40.2:cache/yocto/dts
rsync -P -e "ssh -i ~/.ssh/dts-ci-key" -rlptD --delete build-sb/sstate-cache builder@10.1.40.2:cache/yocto/dts/dts-uefi-sb
- name: Send downloads folder to cache.dasharo.com
shell: bash
run: |
rsync -P -e "ssh -i ~/.ssh/dts-ci-key" -rlptD --delete build/downloads builder@10.1.40.2:cache/yocto/dts
rsync -P -e "ssh -i ~/.ssh/dts-ci-key" -rlptD --delete build-sb/downloads builder@10.1.40.2:cache/yocto/dts/dts-uefi-sb
cleanup:
name: Cleanup
if: always()
Expand All @@ -48,4 +64,4 @@ jobs:
shell: bash
run: |
rm -rf ~/.ssh/dts-ci-key
rm -rf build
rm -rf build build-sb
4 changes: 4 additions & 0 deletions kas-uefi-sb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ repos:
meta-openembedded:
layers:
meta-perl:

local_conf_header:
yocto-cache-uefi-sb: |
PROJECT_NAME = "yocto/dts/dts-uefi-sb"

0 comments on commit 709f3bd

Please sign in to comment.