|
94 | 94 | build-args: |
|
95 | 95 | compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux.compute_runtime.github_tag}}
|
96 | 96 | igc_tag=${{fromJson(steps.deps.outputs.deps).linux.igc.github_tag}}
|
| 97 | + cm_tag=${{fromJson(steps.deps.outputs.deps).linux.cm.github_tag}} |
| 98 | + level_zero_tag=${{fromJson(steps.deps.outputs.deps).linux.level_zero.github_tag}} |
97 | 99 | tbb_tag=${{fromJson(steps.deps.outputs.deps).linux.tbb.github_tag}}
|
98 | 100 | fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux.fpgaemu.github_tag}}
|
99 | 101 | cpu_tag=${{fromJson(steps.deps.outputs.deps).linux.oclcpu.github_tag}}
|
@@ -128,10 +130,115 @@ jobs:
|
128 | 130 | tags: |
|
129 | 131 | ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable-${{ github.sha }}
|
130 | 132 | ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable
|
131 |
| - build-args: | |
132 |
| - compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.compute_runtime.github_tag}} |
133 |
| - igc_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.igc.github_tag}} |
134 |
| - tbb_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.tbb.github_tag}} |
135 |
| - fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.fpgaemu.github_tag}} |
136 |
| - cpu_tag=${{fromJson(steps.deps.outputs.deps).linux_staging.oclcpu.github_tag}} |
| 133 | + # build-args:empty , so we automatically take the "latest" tags as |
| 134 | + # unstable |
137 | 135 |
|
| 136 | + base_image_ubuntu2204: |
| 137 | + if: github.repository == 'intel/llvm' |
| 138 | + name: Base Ubuntu 22.04 Docker image |
| 139 | + runs-on: ubuntu-latest |
| 140 | + steps: |
| 141 | + - name: Checkout |
| 142 | + uses: actions/checkout@v3 |
| 143 | + with: |
| 144 | + fetch-depth: 2 |
| 145 | + - name: Build and Push Container |
| 146 | + uses: ./devops/actions/build_container |
| 147 | + with: |
| 148 | + push: ${{ github.event_name != 'pull_request' }} |
| 149 | + file: ubuntu2204_base |
| 150 | + username: ${{ github.repository_owner }} |
| 151 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 152 | + tags: | |
| 153 | + ghcr.io/${{ github.repository }}/ubuntu2204_base:${{ github.sha }} |
| 154 | + ghcr.io/${{ github.repository }}/ubuntu2204_base:latest |
| 155 | + build_image_ubuntu2204: |
| 156 | + if: github.repository == 'intel/llvm' |
| 157 | + name: Build Ubuntu Docker image |
| 158 | + runs-on: ubuntu-latest |
| 159 | + steps: |
| 160 | + - name: Checkout |
| 161 | + uses: actions/checkout@v3 |
| 162 | + with: |
| 163 | + fetch-depth: 2 |
| 164 | + - name: Build and Push Container |
| 165 | + uses: ./devops/actions/build_container |
| 166 | + with: |
| 167 | + push: ${{ github.event_name != 'pull_request' }} |
| 168 | + file: ubuntu2204_build |
| 169 | + username: ${{ github.repository_owner }} |
| 170 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 171 | + tags: | |
| 172 | + ghcr.io/${{ github.repository }}/ubuntu2204_build:${{ github.sha }} |
| 173 | + ghcr.io/${{ github.repository }}/ubuntu2204_build:latest |
| 174 | +
|
| 175 | + # This job produces a Docker container with the latest versions of Intel |
| 176 | + # drivers, that can be found on GitHub. |
| 177 | + drivers_image_ubuntu2204: |
| 178 | + if: github.repository == 'intel/llvm' |
| 179 | + name: Intel Drivers Ubuntu 22.04 Docker image |
| 180 | + runs-on: ubuntu-latest |
| 181 | + needs: base_image_ubuntu2204 |
| 182 | + steps: |
| 183 | + - name: Checkout |
| 184 | + uses: actions/checkout@v3 |
| 185 | + with: |
| 186 | + fetch-depth: 2 |
| 187 | + - name: Get dependencies configuration |
| 188 | + id: deps |
| 189 | + run: | |
| 190 | + DEPS=`cat devops/dependencies.json` |
| 191 | + DEPS="${DEPS//$'\r'/''}" |
| 192 | + DEPS="${DEPS//$'\n'/' '}" |
| 193 | + echo $DEPS |
| 194 | + echo "deps=$DEPS" >>$GITHUB_OUTPUT |
| 195 | + - name: Build and Push Container |
| 196 | + uses: ./devops/actions/build_container |
| 197 | + with: |
| 198 | + push: ${{ github.event_name != 'pull_request' }} |
| 199 | + file: ubuntu2204_intel_drivers |
| 200 | + username: ${{ github.repository_owner }} |
| 201 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 202 | + tags: | |
| 203 | + ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:latest-${{ github.sha }} |
| 204 | + ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:latest |
| 205 | + build-args: | |
| 206 | + compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux.compute_runtime.github_tag}} |
| 207 | + igc_tag=${{fromJson(steps.deps.outputs.deps).linux.igc.github_tag}} |
| 208 | + cm_tag=${{fromJson(steps.deps.outputs.deps).linux.cm.github_tag}} |
| 209 | + level_zero_tag=${{fromJson(steps.deps.outputs.deps).linux.level_zero.github_tag}} |
| 210 | + tbb_tag=${{fromJson(steps.deps.outputs.deps).linux.tbb.github_tag}} |
| 211 | + fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux.fpgaemu.github_tag}} |
| 212 | + cpu_tag=${{fromJson(steps.deps.outputs.deps).linux.oclcpu.github_tag}} |
| 213 | + # This job produces a Docker container with the latest versions of Intel |
| 214 | + # drivers, that can be found on GitHub. |
| 215 | + drivers_image_ubuntu2204_unstable: |
| 216 | + if: github.repository == 'intel/llvm' |
| 217 | + name: Intel Drivers (unstable) Ubuntu 22.04 Docker image |
| 218 | + runs-on: ubuntu-latest |
| 219 | + needs: base_image_ubuntu2204 |
| 220 | + steps: |
| 221 | + - name: Checkout |
| 222 | + uses: actions/checkout@v3 |
| 223 | + with: |
| 224 | + fetch-depth: 2 |
| 225 | + - name: Get dependencies configuration |
| 226 | + id: deps |
| 227 | + run: | |
| 228 | + DEPS=`cat devops/dependencies.json` |
| 229 | + DEPS="${DEPS//$'\r'/''}" |
| 230 | + DEPS="${DEPS//$'\n'/' '}" |
| 231 | + echo $DEPS |
| 232 | + echo "deps=$DEPS" >>$GITHUB_OUTPUT |
| 233 | + - name: Build and Push Container |
| 234 | + uses: ./devops/actions/build_container |
| 235 | + with: |
| 236 | + push: ${{ github.event_name != 'pull_request' }} |
| 237 | + file: ubuntu2204_intel_drivers |
| 238 | + username: ${{ github.repository_owner }} |
| 239 | + password: ${{ secrets.GITHUB_TOKEN }} |
| 240 | + tags: | |
| 241 | + ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:unstable-${{ github.sha }} |
| 242 | + ghcr.io/${{ github.repository }}/ubuntu2204_intel_drivers:unstable |
| 243 | + # build-args:empty, so we automatically take the "latest" tags as |
| 244 | + # unstable |
0 commit comments