|
| 1 | +# DO NOT MODIFY MANUALLY! |
| 2 | +# This file has been autogenerated by invoking: |
| 3 | +# $ ./generate_workflow.py android16-6.12 |
| 4 | +name: android16-6.12 (clang-19) |
| 5 | +'on': |
| 6 | + push: |
| 7 | + branches: |
| 8 | + - presubmit/* |
| 9 | + paths: |
| 10 | + - check_logs.py |
| 11 | + - utils.py |
| 12 | + - tuxsuite/android16-6.12-clang-19.tux.yml |
| 13 | + - .github/workflows/android16-6.12-clang-19.yml |
| 14 | + schedule: |
| 15 | + - cron: 0 6 * * 0 |
| 16 | + workflow_dispatch: null |
| 17 | +permissions: read-all |
| 18 | +jobs: |
| 19 | + check_patches: |
| 20 | + name: Check that patches are applicable |
| 21 | + runs-on: ubuntu-latest |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v4 |
| 24 | + - name: check-patches-apply.py |
| 25 | + run: python3 scripts/check-patches-apply.py --patches-dir patches/android16-6.12 --repo https://android.googlesource.com/kernel/common.git --ref android16-6.12 |
| 26 | + check_cache: |
| 27 | + name: Check Cache |
| 28 | + runs-on: ubuntu-latest |
| 29 | + container: tuxmake/x86_64_korg-clang-19 |
| 30 | + needs: check_patches |
| 31 | + env: |
| 32 | + GIT_REPO: https://android.googlesource.com/kernel/common.git |
| 33 | + GIT_REF: android16-6.12 |
| 34 | + outputs: |
| 35 | + output: ${{ steps.step2.outputs.output }} |
| 36 | + status: ${{ steps.step2.outputs.status }} |
| 37 | + steps: |
| 38 | + - uses: actions/checkout@v4 |
| 39 | + - name: pip install -r requirements.txt |
| 40 | + run: apt-get update && apt-get install -y python3-venv && python3 -m venv venv && . venv/bin/activate && pip install -r requirements.txt |
| 41 | + - name: python check_cache.py |
| 42 | + id: step1 |
| 43 | + continue-on-error: true |
| 44 | + run: . venv/bin/activate && python caching/check.py -w '${{ github.workflow }}' -g ${{ secrets.REPO_SCOPED_PAT }} -r ${{ env.GIT_REF }} -o ${{ env.GIT_REPO }} |
| 45 | + - name: Save exit code to GITHUB_OUTPUT |
| 46 | + id: step2 |
| 47 | + run: echo "output=${{ steps.step1.outcome }}" >> "$GITHUB_OUTPUT" && echo "status=$CACHE_PASS" >> "$GITHUB_OUTPUT" |
| 48 | + kick_tuxsuite_defconfigs: |
| 49 | + name: TuxSuite (defconfigs) |
| 50 | + runs-on: ubuntu-latest |
| 51 | + container: tuxsuite/tuxsuite |
| 52 | + needs: |
| 53 | + - check_cache |
| 54 | + - check_patches |
| 55 | + env: |
| 56 | + TUXSUITE_TOKEN: ${{ secrets.TUXSUITE_TOKEN }} |
| 57 | + REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }} |
| 58 | + timeout-minutes: 480 |
| 59 | + steps: |
| 60 | + - name: Checking Cache Pass |
| 61 | + if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'pass' }} |
| 62 | + run: echo 'Cache HIT on previously PASSED build. Passing this build to avoid redundant work.' && exit 0 |
| 63 | + - name: Checking Cache Fail |
| 64 | + if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'fail' }} |
| 65 | + run: echo 'Cache HIT on previously FAILED build. Failing this build to avoid redundant work.' && exit 1 |
| 66 | + - uses: actions/checkout@v4 |
| 67 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 68 | + - name: tuxsuite |
| 69 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 70 | + run: tuxsuite plan --git-repo https://android.googlesource.com/kernel/common.git --git-ref android16-6.12 --job-name defconfigs --json-out builds.json tuxsuite/android16-6.12-clang-19.tux.yml || true |
| 71 | + - name: Update Cache Build Status |
| 72 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 73 | + run: python caching/update.py |
| 74 | + - name: save builds.json |
| 75 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 76 | + uses: actions/upload-artifact@v4 |
| 77 | + with: |
| 78 | + path: builds.json |
| 79 | + name: output_artifact_defconfigs |
| 80 | + if-no-files-found: error |
| 81 | + - name: generate boot-utils.json |
| 82 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 83 | + run: python3 scripts/generate-boot-utils-json.py ${{ secrets.GITHUB_TOKEN }} |
| 84 | + - name: save boot-utils.json |
| 85 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 86 | + uses: actions/upload-artifact@v4 |
| 87 | + with: |
| 88 | + path: boot-utils.json |
| 89 | + name: boot_utils_json_defconfigs |
| 90 | + if-no-files-found: error |
| 91 | + _90aa27ccc9509144710b3f10b0040d67: |
| 92 | + runs-on: ubuntu-latest |
| 93 | + needs: |
| 94 | + - kick_tuxsuite_defconfigs |
| 95 | + - check_cache |
| 96 | + - check_patches |
| 97 | + name: ARCH=arm LLVM=1 LLVM_IAS=1 LLVM_VERSION=19 multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y |
| 98 | + if: ${{ needs.check_cache.outputs.status != 'pass' }} |
| 99 | + env: |
| 100 | + ARCH: arm |
| 101 | + LLVM_VERSION: 19 |
| 102 | + BOOT: 1 |
| 103 | + CONFIG: multi_v7_defconfig+CONFIG_THUMB2_KERNEL=y |
| 104 | + REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }} |
| 105 | + container: |
| 106 | + image: ghcr.io/clangbuiltlinux/qemu |
| 107 | + options: --ipc=host |
| 108 | + steps: |
| 109 | + - uses: actions/checkout@v4 |
| 110 | + with: |
| 111 | + submodules: true |
| 112 | + - uses: actions/download-artifact@v4 |
| 113 | + with: |
| 114 | + name: output_artifact_defconfigs |
| 115 | + - uses: actions/download-artifact@v4 |
| 116 | + with: |
| 117 | + name: boot_utils_json_defconfigs |
| 118 | + - name: Check Build and Boot Logs |
| 119 | + run: scripts/check-logs.py |
| 120 | + _427ad04336d3b729e9f06ac390339c83: |
| 121 | + runs-on: ubuntu-latest |
| 122 | + needs: |
| 123 | + - kick_tuxsuite_defconfigs |
| 124 | + - check_cache |
| 125 | + - check_patches |
| 126 | + name: ARCH=arm64 LLVM=1 LLVM_IAS=1 LLVM_VERSION=19 gki_defconfig+CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n |
| 127 | + if: ${{ needs.check_cache.outputs.status != 'pass' }} |
| 128 | + env: |
| 129 | + ARCH: arm64 |
| 130 | + LLVM_VERSION: 19 |
| 131 | + BOOT: 1 |
| 132 | + CONFIG: gki_defconfig+CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n |
| 133 | + REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }} |
| 134 | + container: |
| 135 | + image: ghcr.io/clangbuiltlinux/qemu |
| 136 | + options: --ipc=host |
| 137 | + steps: |
| 138 | + - uses: actions/checkout@v4 |
| 139 | + with: |
| 140 | + submodules: true |
| 141 | + - uses: actions/download-artifact@v4 |
| 142 | + with: |
| 143 | + name: output_artifact_defconfigs |
| 144 | + - uses: actions/download-artifact@v4 |
| 145 | + with: |
| 146 | + name: boot_utils_json_defconfigs |
| 147 | + - name: Check Build and Boot Logs |
| 148 | + run: scripts/check-logs.py |
| 149 | + _69be54e07c0c29096e6473be61b248d6: |
| 150 | + runs-on: ubuntu-latest |
| 151 | + needs: |
| 152 | + - kick_tuxsuite_defconfigs |
| 153 | + - check_cache |
| 154 | + - check_patches |
| 155 | + name: ARCH=x86_64 LLVM=1 LLVM_IAS=1 LLVM_VERSION=19 gki_defconfig+CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n |
| 156 | + if: ${{ needs.check_cache.outputs.status != 'pass' }} |
| 157 | + env: |
| 158 | + ARCH: x86_64 |
| 159 | + LLVM_VERSION: 19 |
| 160 | + BOOT: 1 |
| 161 | + CONFIG: gki_defconfig+CONFIG_DEBUG_INFO_COMPRESSED_ZSTD=n |
| 162 | + REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }} |
| 163 | + container: |
| 164 | + image: ghcr.io/clangbuiltlinux/qemu |
| 165 | + options: --ipc=host |
| 166 | + steps: |
| 167 | + - uses: actions/checkout@v4 |
| 168 | + with: |
| 169 | + submodules: true |
| 170 | + - uses: actions/download-artifact@v4 |
| 171 | + with: |
| 172 | + name: output_artifact_defconfigs |
| 173 | + - uses: actions/download-artifact@v4 |
| 174 | + with: |
| 175 | + name: boot_utils_json_defconfigs |
| 176 | + - name: Check Build and Boot Logs |
| 177 | + run: scripts/check-logs.py |
| 178 | + kick_tuxsuite_allconfigs: |
| 179 | + name: TuxSuite (allconfigs) |
| 180 | + runs-on: ubuntu-latest |
| 181 | + container: tuxsuite/tuxsuite |
| 182 | + needs: |
| 183 | + - check_cache |
| 184 | + - check_patches |
| 185 | + env: |
| 186 | + TUXSUITE_TOKEN: ${{ secrets.TUXSUITE_TOKEN }} |
| 187 | + REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }} |
| 188 | + timeout-minutes: 480 |
| 189 | + steps: |
| 190 | + - name: Checking Cache Pass |
| 191 | + if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'pass' }} |
| 192 | + run: echo 'Cache HIT on previously PASSED build. Passing this build to avoid redundant work.' && exit 0 |
| 193 | + - name: Checking Cache Fail |
| 194 | + if: ${{ needs.check_cache.outputs.output == 'success' && github.event_name != 'workflow_dispatch' && needs.check_cache.outputs.status == 'fail' }} |
| 195 | + run: echo 'Cache HIT on previously FAILED build. Failing this build to avoid redundant work.' && exit 1 |
| 196 | + - uses: actions/checkout@v4 |
| 197 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 198 | + - name: tuxsuite |
| 199 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 200 | + run: tuxsuite plan --git-repo https://android.googlesource.com/kernel/common.git --git-ref android16-6.12 --job-name allconfigs --json-out builds.json tuxsuite/android16-6.12-clang-19.tux.yml || true |
| 201 | + - name: Update Cache Build Status |
| 202 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 203 | + run: python caching/update.py |
| 204 | + - name: save builds.json |
| 205 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 206 | + uses: actions/upload-artifact@v4 |
| 207 | + with: |
| 208 | + path: builds.json |
| 209 | + name: output_artifact_allconfigs |
| 210 | + if-no-files-found: error |
| 211 | + - name: generate boot-utils.json |
| 212 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 213 | + run: python3 scripts/generate-boot-utils-json.py ${{ secrets.GITHUB_TOKEN }} |
| 214 | + - name: save boot-utils.json |
| 215 | + if: ${{ needs.check_cache.outputs.output == 'failure' || github.event_name == 'workflow_dispatch' }} |
| 216 | + uses: actions/upload-artifact@v4 |
| 217 | + with: |
| 218 | + path: boot-utils.json |
| 219 | + name: boot_utils_json_allconfigs |
| 220 | + if-no-files-found: error |
| 221 | + _6f71d19d995dea404a579b62f38088ac: |
| 222 | + runs-on: ubuntu-latest |
| 223 | + needs: |
| 224 | + - kick_tuxsuite_allconfigs |
| 225 | + - check_cache |
| 226 | + - check_patches |
| 227 | + name: ARCH=arm BOOT=0 LLVM=1 LLVM_IAS=1 LLVM_VERSION=19 allmodconfig+CONFIG_WERROR=n+CONFIG_DRM_WERROR=n |
| 228 | + if: ${{ needs.check_cache.outputs.status != 'pass' }} |
| 229 | + env: |
| 230 | + ARCH: arm |
| 231 | + LLVM_VERSION: 19 |
| 232 | + BOOT: 0 |
| 233 | + CONFIG: allmodconfig+CONFIG_WERROR=n+CONFIG_DRM_WERROR=n |
| 234 | + REPO_SCOPED_PAT: ${{ secrets.REPO_SCOPED_PAT }} |
| 235 | + container: |
| 236 | + image: ghcr.io/clangbuiltlinux/qemu |
| 237 | + options: --ipc=host |
| 238 | + steps: |
| 239 | + - uses: actions/checkout@v4 |
| 240 | + with: |
| 241 | + submodules: true |
| 242 | + - uses: actions/download-artifact@v4 |
| 243 | + with: |
| 244 | + name: output_artifact_allconfigs |
| 245 | + - uses: actions/download-artifact@v4 |
| 246 | + with: |
| 247 | + name: boot_utils_json_allconfigs |
| 248 | + - name: Check Build and Boot Logs |
| 249 | + run: scripts/check-logs.py |
| 250 | + |
0 commit comments