[master]-cache-build #915
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "[master]-cache-build" | |
on: | |
schedule: | |
- cron: "30 10 * * *" | |
workflow_dispatch: | |
jobs: | |
buildrun: | |
name: "build" | |
env: | |
DISTRO: scatest | |
SCM_BRANCH: master | |
BUILD_MAXRUNTIME: 20000 | |
PYTHONIOENCODING: utf8 | |
LC_ALL: en_US.UTF-8 | |
LANG: en_US.UTF-8 | |
LANGUAGE: en_US.UTF-8 | |
runs-on: ubuntu-latest | |
container: | |
image: privkweihmann/yocto-sca-minimal:2004 | |
env: | |
WORKSPACE: /opt/build | |
TOPDIR: /opt/build | |
TEMPLATECONF: /opt/build/sources/meta-sca/conf/templates/scatest-qemux86-64/ | |
volumes: | |
- ${{ github.workspace }}:/opt/build | |
options: --privileged --user=yoctouser | |
steps: | |
- name: setup (container) | |
uses: priv-kweihmann/meta-sca-ci-utils/preparecontainer@latest | |
- name: setup (caches) | |
run: | | |
mkdir -p ${WORKSPACE}/sstate-cache | |
shell: bash | |
- name: Get current date | |
id: date | |
run: echo "date=$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_OUTPUT | |
- name: additional setup (caches) | |
uses: actions/cache@v3 | |
with: | |
path: /opt/build/sstate-cache | |
key: sca-glibc-${{ steps.date.outputs.date }} | |
- name: checkout (poky) | |
uses: priv-kweihmann/meta-sca-ci-utils/addlayer@latest | |
with: | |
repo: git://git.yoctoproject.org/poky.git | |
branch: ${{ env.SCM_BRANCH }} | |
add-layer: "0" | |
- name: checkout (meta-sca) | |
uses: priv-kweihmann/meta-sca-ci-utils/addlayer@latest | |
with: | |
repo: https://github.com/priv-kweihmann/meta-sca.git | |
branch: ${{ env.SCM_BRANCH }} | |
- name: configure (caches) | |
uses: priv-kweihmann/meta-sca-ci-utils/addvar@latest | |
with: | |
variable: SSTATE_DIR | |
value: /opt/build/sstate-cache | |
- name: build (glibc) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: glibc | |
ignore-exit-codes: 124 137 1 | |
- name: build (rust 1/4) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "rust-llvm-native" | |
ignore-exit-codes: 124 137 1 | |
- name: build (rust 2/4) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "rust-native" | |
ignore-exit-codes: 124 137 1 | |
- name: build (rust 3/4) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "cargo-native" | |
ignore-exit-codes: 124 137 1 | |
- name: build (rust 4/4) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "cargo" | |
ignore-exit-codes: 124 137 1 | |
- name: build (tools 1/2) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "openssl perl" | |
ignore-exit-codes: 124 137 1 | |
- name: build (tools 2/2) | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "qemu-system-native" | |
ignore-exit-codes: 124 137 1 | |
- name: build | |
uses: priv-kweihmann/meta-sca-ci-utils/buildstep@latest | |
with: | |
target: "core-image-minimal-scatest bad-go bad-package" | |
ignore-exit-codes: 124 137 1 | |
- name: print disk usage | |
if: always() | |
uses: priv-kweihmann/meta-sca-ci-utils/diskusage@latest | |
- name: cleanup workspace | |
if: always() | |
run: | | |
# to have enough disk space left to compress the caches | |
# we need to remove a bit of the stuff we don't need | |
# anymore, such as TMPDIR | |
rm -rf /opt/build/build/tmp |