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

openrc-0.51 and github actions #32

Merged
merged 4 commits into from
Oct 31, 2023
Merged
Show file tree
Hide file tree
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
20 changes: 14 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,17 @@ jobs:
uses: actions/checkout@v3
with:
path: meta-openrc
- name: Shared-State Cache
uses: actions/cache@v3
- name: Restore Shared-State Cache
uses: actions/cache/restore@v3
with:
path: |
build/sstate-cache
path: build/sstate-cache
key: sstate-openrc-${{ env.OE_BRANCH }}-${{ github.sha }}
restore-keys: |
sstate-openrc-${{ env.OE_BRANCH }}
sstate-openrc-
sstate-
- name: Clone Poky
run: git clone -b ${{ env.OE_BRANCH }} git://git.yoctoproject.org/poky
run: git clone -b ${{ env.OE_BRANCH }} https://git.yoctoproject.org/poky
- name: Initialize build directory
run: |
source poky/oe-init-build-env build
Expand All @@ -61,6 +60,7 @@ jobs:
echo 'SSTATE_MIRRORS += "file://.* http://sstate.yoctoproject.org/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_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
Expand All @@ -70,13 +70,21 @@ jobs:
run: |
source poky/oe-init-build-env build
bitbake openrc-image
- name: Prune Shared-State Cache
- name: Prune Shared-State Cache and tmpdir
if: always()
run: |
source poky/oe-init-build-env build
du -sh sstate-cache
sstate-cache-management.sh --yes --cache-dir=sstate-cache --remove-duplicated
sstate-cache-management.sh --yes --cache-dir=sstate-cache --stamps-dir=tmp/stamps
du -sh sstate-cache
rm -r tmp/
- name: Save Shared-State Cache
if: always()
uses: actions/cache/save@v3
with:
path: build/sstate-cache
key: sstate-openrc-${{ env.OE_BRANCH }}-${{ github.sha }}

yocto-check-layer:
name: yocto-check-layer
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
LICENSE = "BSD-2-Clause"
LIC_FILES_CHKSUM = "file://LICENSE;md5=18590035fb3f5120d3a5e4b781f9ae25"

SRCREV = "92662ddc44f6091e8085fcd4637d13f04e90c5ac"
SRCREV = "a2f002f1a87bb7e13a214721717f5e2fec5f3571"

SRC_URI = " \
git://github.com/openrc/openrc.git;nobranch=1;protocol=https \
file://volatiles.initd \
file://getty.confd \
file://getty.initd \
file://0001-Don-t-re-define-strlcpy-strlcat-with-glibc-2.38.patch \
"

S = "${WORKDIR}/git"
Expand Down
Loading