|
15 | 15 | name: Docker CHIP images
|
16 | 16 |
|
17 | 17 | on:
|
| 18 | + workflow_call: |
| 19 | + inputs: |
| 20 | + push_images: |
| 21 | + required: false |
| 22 | + type: boolean |
| 23 | + default: false |
18 | 24 | push:
|
19 | 25 | paths:
|
20 |
| - - "integrations/docker/images/**" |
| 26 | + - "integrations/docker/**" |
21 | 27 | pull_request:
|
22 | 28 | paths:
|
23 |
| - - "integrations/docker/images/**" |
| 29 | + - "integrations/docker/**" |
24 | 30 | workflow_dispatch:
|
25 |
| - |
| 31 | + inputs: |
| 32 | + push_images: |
| 33 | + required: false |
| 34 | + type: boolean |
| 35 | + default: false |
| 36 | + |
26 | 37 | jobs:
|
27 |
| - build_images: |
28 |
| - name: Build Docker CHIP Build images |
| 38 | + build_images_base: |
| 39 | + name: Build Docker CHIP Build images - base |
29 | 40 | runs-on: ubuntu-latest
|
30 | 41 | if: github.actor != 'restyled-io[bot]'
|
31 | 42 | strategy:
|
32 | 43 | fail-fast: false
|
33 | 44 | matrix:
|
34 | 45 | img:
|
35 | 46 | - ""
|
36 |
| - - "-ameba" |
37 |
| - - "-android" |
38 |
| - - "-cirque" |
| 47 | + - "-minimal" |
| 48 | + steps: |
| 49 | + - name: Checkout |
| 50 | + uses: actions/checkout@v3 |
| 51 | + - name: Build images using project bash script |
| 52 | + if: ${{ inputs.push_images == true }} |
| 53 | + run: | |
| 54 | + cd integrations/docker/images/base/chip-build${{ matrix.img }} |
| 55 | + ./build.sh --latest --push |
| 56 | + - name: Build & Push images using project bash script |
| 57 | + if: ${{ inputs.push_images == false }} |
| 58 | + run: | |
| 59 | + cd integrations/docker/images/base/chip-build${{ matrix.img }} |
| 60 | + ./build.sh --latest |
| 61 | + build_images_stage_1: |
| 62 | + needs: [build_images_base] |
| 63 | + name: Build Docker CHIP Build images - stage 1 |
| 64 | + runs-on: ubuntu-latest |
| 65 | + if: github.actor != 'restyled-io[bot]' |
| 66 | + strategy: |
| 67 | + fail-fast: false |
| 68 | + matrix: |
| 69 | + img: |
39 | 70 | - "-crosscompile"
|
| 71 | + steps: |
| 72 | + - name: Checkout |
| 73 | + uses: actions/checkout@v3 |
| 74 | + - name: Build images using project bash script |
| 75 | + if: ${{ inputs.push_images == true }} |
| 76 | + run: | |
| 77 | + cd integrations/docker/images/stage-1/chip-build${{ matrix.img }} |
| 78 | + ./build.sh --latest --push |
| 79 | + - name: Build & Push images using project bash script |
| 80 | + if: ${{ inputs.push_images == false }} |
| 81 | + run: | |
| 82 | + cd integrations/docker/images/stage-1/chip-build${{ matrix.img }} |
| 83 | + ./build.sh --latest |
| 84 | + build_images_stage_2: |
| 85 | + needs: [build_images_base, build_images_stage_1] |
| 86 | + name: Build Docker CHIP Build images - stage 2 |
| 87 | + runs-on: ubuntu-latest |
| 88 | + if: github.actor != 'restyled-io[bot]' |
| 89 | + strategy: |
| 90 | + fail-fast: false |
| 91 | + matrix: |
| 92 | + img: |
| 93 | + - "-ameba" |
| 94 | + - "-asr" |
| 95 | + - "-bouffalolab" |
40 | 96 | - "-doxygen"
|
41 | 97 | - "-efr32"
|
42 | 98 | - "-esp32"
|
43 |
| - - "-esp32-qemu" |
44 | 99 | - "-infineon"
|
45 | 100 | # NOTE: imx image requires too much space for GitHub-hosted runners. It fails with:
|
46 | 101 | # ApplyLayer exit status 1 stdout: stderr: write /opt/fsl-imx-xwayland/5.15-kirkstone/sysroots/armv8a-poky-linux/opt/ltp/testcases/bin/fanotify15: no space left on device
|
47 | 102 | # - "-imx"
|
| 103 | + - "-java" |
48 | 104 | - "-k32w"
|
49 | 105 | - "-mbed-os"
|
50 | 106 | - "-nrf-platform"
|
51 | 107 | - "-telink"
|
52 | 108 | - "-ti"
|
53 | 109 | - "-tizen"
|
54 |
| - - "-tizen-qemu" |
55 | 110 | - "-openiotsdk"
|
56 |
| - # NOTE: vscode image consumes ~52 GB disk space but GitHub-hosted runners provide ~10 GB free disk space(https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources) |
57 |
| - #- "-vscode" |
58 | 111 | steps:
|
59 | 112 | - name: Checkout
|
60 | 113 | uses: actions/checkout@v3
|
61 |
| - - name: Build All images using project bash script |
| 114 | + - name: Build images using project bash script |
| 115 | + if: ${{ inputs.push_images == true }} |
| 116 | + run: | |
| 117 | + cd integrations/docker/images/stage-2/chip-build${{ matrix.img }} |
| 118 | + ./build.sh --latest --push |
| 119 | + - name: Build & Push images using project bash script |
| 120 | + if: ${{ inputs.push_images == false }} |
| 121 | + run: | |
| 122 | + cd integrations/docker/images/stage-2/chip-build${{ matrix.img }} |
| 123 | + ./build.sh --latest |
| 124 | + |
| 125 | + build_images_stage_3: |
| 126 | + needs: [build_images_base, build_images_stage_1, build_images_stage_2] |
| 127 | + name: Build Docker CHIP Build images - stage 3 |
| 128 | + runs-on: ubuntu-latest |
| 129 | + if: github.actor != 'restyled-io[bot]' |
| 130 | + strategy: |
| 131 | + fail-fast: false |
| 132 | + matrix: |
| 133 | + img: |
| 134 | + - "-android" |
| 135 | + - "-esp32-qemu" |
| 136 | + - "-tizen-qemu" |
| 137 | + steps: |
| 138 | + - name: Checkout |
| 139 | + uses: actions/checkout@v3 |
| 140 | + - name: Build images using project bash script |
| 141 | + if: ${{ inputs.push_images == true }} |
| 142 | + run: | |
| 143 | + cd integrations/docker/images/stage-3/chip-build${{ matrix.img }} |
| 144 | + ./build.sh --latest --push |
| 145 | + - name: Build & Push images using project bash script |
| 146 | + if: ${{ inputs.push_images == false }} |
| 147 | + run: | |
| 148 | + cd integrations/docker/images/stage-3/chip-build${{ matrix.img }} |
| 149 | + ./build.sh --latest |
| 150 | + build_images_vscode: |
| 151 | + needs: [build_images_base, build_images_stage_1, build_images_stage_2, build_images_stage_3] |
| 152 | + name: Build Docker CHIP Build images - vscode |
| 153 | + runs-on: ubuntu-latest |
| 154 | + if: github.actor != 'restyled-io[bot]' && false |
| 155 | + strategy: |
| 156 | + fail-fast: false |
| 157 | + matrix: |
| 158 | + img: |
| 159 | + - "-vscode" |
| 160 | + steps: |
| 161 | + - name: Checkout |
| 162 | + uses: actions/checkout@v3 |
| 163 | + - name: Build images using project bash script |
| 164 | + if: ${{ inputs.push_images == true }} |
| 165 | + run: | |
| 166 | + cd integrations/docker/images/vscode/chip-build${{ matrix.img }} |
| 167 | + ./build.sh --latest --push |
| 168 | + - name: Build & Push images using project bash script |
| 169 | + if: ${{ inputs.push_images == false }} |
62 | 170 | run: |
|
63 |
| - cd integrations/docker/images/chip-build${{ matrix.img }} |
| 171 | + cd integrations/docker/images/vscode-3/chip-build${{ matrix.img }} |
64 | 172 | ./build.sh --latest
|
0 commit comments