[master]-cache-build #1367
This file contains hidden or 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-22.04 | |
| container: | |
| image: privkweihmann/yocto-sca-minimal:2204 | |
| 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/[email protected] | |
| - 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/[email protected] | |
| with: | |
| repo: https://github.com/openembedded/openembedded-core.git | |
| branch: ${{ env.SCM_BRANCH }} | |
| add-layer: "0" | |
| - name: checkout (bitbake) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| repo: https://github.com/openembedded/bitbake.git | |
| branch: master | |
| add-layer: "0" | |
| - name: checkout (meta-yocto) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| repo: https://git.yoctoproject.org/meta-yocto.git | |
| branch: ${{ env.SCM_BRANCH }} | |
| add-layer: "0" | |
| - name: checkout (meta-sca) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| repo: https://github.com/priv-kweihmann/meta-sca.git | |
| branch: ${{ env.SCM_BRANCH }} | |
| - name: configure (caches) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| variable: SSTATE_DIR | |
| value: /opt/build/sstate-cache | |
| - name: build (glibc) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| target: glibc | |
| ignore-exit-codes: 124 137 1 | |
| - name: build (rust 1/3) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| target: "rust-native" | |
| ignore-exit-codes: 124 137 1 | |
| - name: build (rust 2/3) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| target: "cargo-native" | |
| ignore-exit-codes: 124 137 1 | |
| - name: build (rust 3/3) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| target: "cargo" | |
| ignore-exit-codes: 124 137 1 | |
| - name: build (tools 1/2) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| target: "openssl perl" | |
| ignore-exit-codes: 124 137 1 | |
| - name: build (tools 2/2) | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| with: | |
| target: "qemu-system-native" | |
| ignore-exit-codes: 124 137 1 | |
| - name: build | |
| uses: priv-kweihmann/meta-sca-ci-utils/[email protected] | |
| 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/[email protected] | |
| - 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 |