-
Notifications
You must be signed in to change notification settings - Fork 730
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 (#13441)
Per discussion with @aelovikov-intel ,factor out all igc dev related code to new workflows to avoid necessary interaction with other docker images.
- Loading branch information
Showing
9 changed files
with
157 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,52 @@ | ||
name: IGC DEV CI Containers | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- sycl | ||
paths: | ||
- 'devops/actions/build_container/**' | ||
- 'devops/dependencies-igc-dev.json' | ||
- '.github/workflows/sycl-containers-igc-dev.yaml' | ||
pull_request: | ||
paths: | ||
- 'devops/actions/build_container/**' | ||
- '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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Update IGC dev driver | ||
|
||
on: | ||
schedule: | ||
- cron: '0 3 * * 1,4' | ||
workflow_dispatch: | ||
|
||
permissions: read-all | ||
|
||
jobs: | ||
update_driver_linux: | ||
permissions: | ||
contents: write # for Git to git push | ||
runs-on: ubuntu-20.04 | ||
if: github.repository == 'intel/llvm' | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Update dependencies file | ||
run: | | ||
version="$(python3 devops/scripts/update_drivers.py linux --igc-dev-only)" | ||
echo 'NEW_DRIVER_VERSION='$version >> $GITHUB_ENV | ||
- name: Create Pull Request | ||
env: | ||
BRANCH: ci/update_gpu_driver-linux-${{ env.NEW_DRIVER_VERSION }} | ||
GITHUB_TOKEN: ${{ secrets.LLVM_MAIN_SYNC_BBSYCL_TOKEN }} | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
git config --global user.name "GitHub Actions" | ||
git config --global user.email "actions@github.com" | ||
git checkout -B $BRANCH | ||
git add -u | ||
git commit -m "[GHA] Uplift Linux IGC Dev RT version to $NEW_DRIVER_VERSION" || exit 0 # exit if commit is empty | ||
git show | ||
git push https://$GITHUB_TOKEN@github.com/${{ github.repository }} ${BRANCH} | ||
gh pr create --head $BRANCH --title "[GHA] Uplift Linux IGC Dev RT version to $NEW_DRIVER_VERSION" --body "Scheduled igc dev drivers uplift" |
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,11 @@ | ||
{ | ||
"linux": { | ||
"igc_dev": { | ||
"github_tag": "igc-dev-498324a", | ||
"version": "498324a", | ||
"updated_at": "2024-04-17T13:44:27Z", | ||
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1422168296/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