-
Notifications
You must be signed in to change notification settings - Fork 738
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] Factor out igc dev related code
To avoid uncessary inteaction with other docker images
- Loading branch information
Showing
8 changed files
with
118 additions
and
36 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: IGC DEV CI Containers | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- sycl | ||
paths: | ||
- 'devops/dependencies-igc-dev.json' | ||
- '.github/workflows/sycl-containers-igc-dev.yaml' | ||
pull_request: | ||
paths: | ||
- 'devops/dependencies-igc-dev.json' | ||
- '.github/workflows/sycl-containers-igc-dev.yaml' | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
build_and_push_images: | ||
if: github.repository == 'intel/llvm' | ||
name: Build and Push IGC Dev Docker Images | ||
runs-on: ubuntu-22.04 | ||
permissions: | ||
packages: write | ||
strategy: | ||
matrix: | ||
include: | ||
- name: Intel Drivers Ubuntu 22.04 Docker image with dev IGC | ||
dockerfile: ubuntu2204_intel_drivers_igc_dev | ||
imagefile: ubuntu2204_intel_drivers | ||
tag: devigc | ||
build_args: | | ||
"use_latest=false" | ||
"use_igc_dev=true" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 2 | ||
- name: Build and Push Container | ||
uses: ./devops/actions/build_container | ||
with: | ||
push: ${{ github.event_name != 'pull_request' }} | ||
file: ${{ matrix.dockerfile }} | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
tags: | | ||
ghcr.io/${{ github.repository }}/${{ matrix.imagefile }}:${{ matrix.tag }}-${{ github.sha }} | ||
ghcr.io/${{ github.repository }}/${{ matrix.imagefile }}:${{ matrix.tag }} | ||
build-args: ${{ matrix.build_args }} | ||
|
This file contains 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
This file contains 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
24 changes: 24 additions & 0 deletions
24
devops/containers/ubuntu2204_intel_drivers_igc_dev.Dockerfile
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ARG base_tag=latest | ||
ARG base_image=ghcr.io/intel/llvm/ubuntu2204_base | ||
|
||
FROM $base_image:$base_tag | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update && apt install -yqq libllvm14 | ||
|
||
COPY scripts/get_release.py / | ||
COPY scripts/install_drivers.sh / | ||
COPY dependencies.json / | ||
COPY dependencies-igc-dev.json / | ||
|
||
RUN mkdir /runtimes | ||
ENV INSTALL_LOCATION=/runtimes | ||
RUN --mount=type=secret,id=github_token \ | ||
install_driver_opt="dependencies.json dependencies-igc-dev.json --use-dev-igc"; \ | ||
GITHUB_TOKEN=$(cat /run/secrets/github_token) /install_drivers.sh $install_driver_opt --all | ||
|
||
COPY scripts/drivers_entrypoint.sh /drivers_entrypoint.sh | ||
|
||
ENTRYPOINT ["/bin/bash", "/drivers_entrypoint.sh"] | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"igc_dev": { | ||
"github_tag": "igc-dev-db4de5f", | ||
"version": "db4de5f", | ||
"updated_at": "2024-04-12T11:06:26Z", | ||
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1409219375/zip", | ||
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu" | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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