"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge patch series "Azure: Rework world build to directly use the container"

This series from Tom Rini <trini@konsulko.com> makes some of our Azure
jobs easier to follow by removing the abstraction of calling docker from
the job we're running and instead following normal Azure Pipelines
conventions.

Link: https://lore.kernel.org/r/20251126234959.3909571-1-trini@konsulko.com

Tom Rini 8e12d6cc 9ecb7dc4

+8 -18
+8 -18
.azure-pipelines.yml
··· 145 145 displayName: 'Run binman, buildman, dtoc, Kconfig and patman testsuites' 146 146 pool: 147 147 vmImage: $(ubuntu_vm) 148 + container: 149 + image: $(ci_runner_image) 150 + options: $(container_option) 148 151 steps: 149 152 - script: | 150 - cat << "EOF" > build.sh 151 - cd $(work_dir) 153 + # Configure git 152 154 git config --global user.name "Azure Pipelines" 153 155 git config --global user.email bmeng.cn@gmail.com 154 - git config --global --add safe.directory $(work_dir) 155 156 export USER=azure 156 157 python3 -m venv /tmp/venv 157 158 . /tmp/venv/bin/activate ··· 174 175 ./tools/dtoc/dtoc -t 175 176 ./tools/patman/patman test 176 177 make O=${UBOOT_TRAVIS_BUILD_DIR} testconfig 177 - EOF 178 - cat build.sh 179 - # We cannot use "container" like other jobs above, as buildman 180 - # seems to hang forever with pre-configured "container" environment 181 - docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh 182 178 183 179 - job: pylint 184 180 displayName: Check for any pylint regressions ··· 657 653 displayName: 'Build the World' 658 654 pool: 659 655 vmImage: $(ubuntu_vm) 656 + container: 657 + image: $(ci_runner_image) 658 + options: $(container_option) 660 659 strategy: 661 660 # We split the world up in to 10 jobs as we can have at most 10 662 661 # parallel jobs going on the free tier of Azure. ··· 721 720 BUILDMAN: $(aarch64_catch_all) 722 721 steps: 723 722 - script: | 724 - cat << EOF > build.sh 725 723 set -ex 726 - cd ${WORK_DIR} 727 - # make environment variables available as tests are running inside a container 728 - export BUILDMAN="${BUILDMAN}" 729 - git config --global --add safe.directory ${WORK_DIR} 724 + # Setup venv, perform build 730 725 python3 -m venv /tmp/venv 731 726 . /tmp/venv/bin/activate 732 727 pip install -r tools/binman/requirements.txt \ 733 728 -r tools/buildman/requirements.txt \ 734 729 setuptools 735 - EOF 736 - cat << "EOF" >> build.sh 737 730 if [[ "${BUILDMAN}" != "" ]]; then 738 731 ret=0; 739 732 tools/buildman/buildman -o /tmp -PEWM ${BUILDMAN} ${OVERRIDE} || ret=$?; ··· 742 735 exit $ret; 743 736 fi; 744 737 fi 745 - EOF 746 - cat build.sh 747 - docker run -v $PWD:$(work_dir) $(ci_runner_image) /bin/bash $(work_dir)/build.sh