Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Scarthgap CI #40

Merged
merged 3 commits into from
Nov 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ on:
jobs:
build:
name: build openrc-image
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
timeout-minutes: 720
steps:
- name: Configure Environment [branch]
Expand All @@ -36,9 +36,10 @@ jobs:
else
echo 'OE_BRANCH='${{ github.base_ref}} >> $GITHUB_ENV
fi
- name: Install required packages
- name: Configure Host
run: |
sudo apt-get install diffstat
sudo apt-get install chrpath diffstat python3-websockets
echo 0 | sudo tee /proc/sys/kernel/apparmor_restrict_unprivileged_userns
- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -63,16 +64,20 @@ jobs:
echo 'BB_SIGNATURE_HANDLER = "OEEquivHash"' >> conf/local.conf
echo 'SSTATE_MIRRORS += "file://.* http://cdn.jsdelivr.net/yocto/sstate/all/PATH;downloadfilename=PATH"' >> conf/local.conf
echo 'BB_HASHSERVE = "auto"' >> conf/local.conf
echo 'BB_HASHSERVE_UPSTREAM = "hashserv.yocto.io:8687"' >> conf/local.conf
echo 'BB_HASHSERVE_UPSTREAM = "wss://hashserv.yoctoproject.org/ws"' >> conf/local.conf
echo 'BB_DISKMON_DIRS = "STOPTASKS,${TMPDIR},100M,10K HALT,${TMPDIR},50M,5k"' >> conf/local.conf
if [ ${{ env.OE_BRANCH }} != "kirkstone" ]; then
echo 'INIT_MANAGER = "openrc"' >> conf/local.conf
else
echo 'DISTRO_FEATURES += "openrc"' >> conf/local.conf
fi
- name: Build operc image
- name: Build openrc image
run: |
source poky/oe-init-build-env build
# Build in stages so we can wipe tmp in between to stay under the
# 14Gb of disk Github gives us. rm_work isn't sufficient.
bitbake openrc
rm -rf tmp/
bitbake openrc-image
- name: Prune Shared-State Cache and tmpdir
if: always()
Expand Down