[master]-nightly #1812
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]-nightly" | ||
| on: | ||
| schedule: | ||
| - cron: "30 18 * * *" | ||
| workflow_dispatch: | ||
| jobs: | ||
| qemux86: | ||
| name: "build" | ||
| env: | ||
| DISTRO: scatest | ||
| PYTHONIOENCODING: utf8 | ||
| LC_ALL: en_US.UTF-8 | ||
| LANG: en_US.UTF-8 | ||
| LANGUAGE: en_US.UTF-8 | ||
| BUILD_EXPORT: 1 | ||
| SCM_BRANCH: master | ||
| BUILD_MAXRUNTIME: 21000 | ||
| runs-on: ubuntu-22.04 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| testset: [standard, kernel, cbmc, cppcheck, license] | ||
| include: | ||
| - testset: standard | ||
| BUILD_PARAMFILE: standard | ||
| WITH_KERNEL: 1 | ||
| - testset: kernel | ||
| BUILD_PARAMFILE: kernel | ||
| WITH_KERNEL: 0 | ||
| BUILDNTEST_NOSCABOT: 1 | ||
| - testset: cbmc | ||
| BUILD_PARAMFILE: cbmc | ||
| WITH_KERNEL: 0 | ||
| BUILDNTEST_NOSCABOT: 1 | ||
| - testset: cppcheck | ||
| BUILD_PARAMFILE: cppcheck | ||
| WITH_KERNEL: 0 | ||
| BUILDNTEST_NOSCABOT: 1 | ||
| - testset: license | ||
| BUILD_PARAMFILE: license | ||
| WITH_KERNEL: 0 | ||
| BUILDNTEST_NOSCABOT: 1 | ||
| 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/preparecontainer@2.0 | ||
| - name: checkout (poky) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/addlayer@2.0 | ||
| 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/addlayer@2.0 | ||
| with: | ||
| repo: https://github.com/openembedded/bitbake.git | ||
| branch: master | ||
| add-layer: "0" | ||
| - name: checkout (meta-yocto) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/addlayer@2.0 | ||
| 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/addlayer@2.0 | ||
| with: | ||
| repo: https://github.com/priv-kweihmann/meta-sca.git | ||
| branch: ${{ env.SCM_BRANCH }} | ||
| - name: setup (bitbake config) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/addvar@2.0 | ||
| with: | ||
| variable: SCA_AVAILABLE_MODULES | ||
| value: /opt/build/sources/meta-sca/test/lang_${{ matrix.BUILD_PARAMFILE }}.txt | ||
| - name: Get current date | ||
| id: date | ||
| run: | | ||
| echo "date=$(date +'%Y-%m-%d-%H-%M-%S')" >> $GITHUB_OUTPUT | ||
| echo "date_month=$(date +'%Y-%m')" >> $GITHUB_OUTPUT | ||
| echo "date_day=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT | ||
| - name: configure (caches) | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: /opt/build/sstate-cache | ||
| key: sca-glibc-${{ steps.date.outputs.date }} | ||
| restore-keys: | | ||
| sca-glibc-${{ steps.date.outputs.date_day }} | ||
| sca-glibc-${{ steps.date.outputs.date_month }} | ||
| sca-glibc- | ||
| - name: activate (caches) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/addvar@2.0 | ||
| with: | ||
| variable: SSTATE_DIR | ||
| value: /opt/build/sstate-cache | ||
| - name: build (glibc) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/buildstep@2.0 | ||
| with: | ||
| target: glibc | ||
| - name: build (qemu-system) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/buildstep@2.0 | ||
| with: | ||
| target: qemu-system-native | ||
| - name: build (kernel) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/buildstep@2.0 | ||
| if: ${{ matrix.WITH_KERNEL }} == '1' | ||
|
Check warning on line 118 in .github/workflows/nightly_master.yml
|
||
| with: | ||
| target: linux-yocto-tiny | ||
| - name: build (sca-modules) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/buildmodules@2.0 | ||
| with: | ||
| parameter-file: ${{ matrix.BUILD_PARAMFILE }} | ||
| clean-skip: "deploy hosttools sysroots-uninative" | ||
| env: | ||
| BUILDNTEST_NOSDK: 1 | ||
| - name: test (sca results) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/testresults@2.0 | ||
| with: | ||
| parameter-file: ${{ matrix.BUILD_PARAMFILE }} | ||
| env: | ||
| BUILDNTEST_NOSCABOT: ${{ matrix.BUILDNTEST_NOSCABOT }} | ||
| - if: env.BUILD_EXPORT == '1' | ||
| name: checkout (webpage) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/addlayer@2.0 | ||
| with: | ||
| repo: https://github.com/priv-kweihmann/priv-kweihmann.github.io.git | ||
| branch: master | ||
| add-layer: "0" | ||
| remove-git: "0" | ||
| - if: env.BUILD_EXPORT == '1' | ||
| name: build (webpage) | ||
| uses: priv-kweihmann/meta-sca-ci-utils/exportresults@2.0 | ||
| with: | ||
| parameter-file: ${{ matrix.BUILD_PARAMFILE }} | ||
| branch: ${{ env.SCM_BRANCH }} | ||
| deploy-token: ${{ secrets.WEBDEPLOY }} | ||