Skip to content

Commit 712138f

Browse files
[SYCL][CI] Create nightly container based on the "build" image (#9685)
I plan to use it in post commit to merge two builds [linux_default](https://github.com/intel/llvm/blob/ac8408c4761180835fb23ccd5183efd5c5c37d95/.github/workflows/sycl_post_commit.yml#L26-L38) and [self_build](https://github.com/intel/llvm/blob/ac8408c4761180835fb23ccd5183efd5c5c37d95/.github/workflows/sycl_post_commit.yml#L39-L51) into one. I can also imagine how we can use that in place of [HIP/CUDA image for E2E tests](https://github.com/intel/llvm/blob/24955697d9f08c0bc7e1f2b80182c7d967f53b70/.github/workflows/sycl_gen_test_matrix.yml#L10-L17) for PRs that only update E2E tests.
1 parent cebe7da commit 712138f

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/sycl_nightly.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,16 @@ jobs:
7878
tags: |
7979
ghcr.io/${{ github.repository }}/sycl_ubuntu2204_nightly:no-drivers-${{ github.sha }}
8080
ghcr.io/${{ github.repository }}/sycl_ubuntu2204_nightly:no-drivers
81+
- name: Build and Push Container (Build image)
82+
uses: ./devops/actions/build_container
83+
with:
84+
push: ${{ github.event_name != 'pull_request' }}
85+
file: ubuntu2204_preinstalled
86+
username: ${{ github.repository_owner }}
87+
password: ${{ secrets.GITHUB_TOKEN }}
88+
build-args: |
89+
base_image=ghcr.io/intel/llvm/ubuntu2204_build
90+
base_tag=latest
91+
tags: |
92+
ghcr.io/${{ github.repository }}/sycl_ubuntu2204_nightly:build-${{ github.sha }}
93+
ghcr.io/${{ github.repository }}/sycl_ubuntu2204_nightly:build

sycl/doc/developer/DockerBKMs.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,14 @@ The following containers are publicly available for DPC++ compiler development:
4040
building DPC++ compiler from source.
4141
- `ghcr.io/intel/llvm/ubuntu2204_intel_drivers`: contains everything from the
4242
base container + pre-installed Intel drivers.
43+
- `ghcr.io/intel/llvm/ubuntu2204_build`: has development kits installed for
44+
NVidia/AMD and can be used for building DPC++ compiler from source with all
45+
backends enabled or for end-to-end testing with HIP/CUDA on machines with
46+
corresponding GPUs available.
4347
- `ghcr.io/intel/llvm/sycl_ubuntu2204_nightly`: contains the latest successfully
44-
built nightly build of DPC++ compiler. The image comes in two flavors:
45-
with pre-installed Intel drivers (`latest`) and without them (`no-drivers`).
48+
built nightly build of DPC++ compiler. The image comes in three flavors:
49+
with pre-installed Intel drivers (`latest`), without them (`no-drivers`) and
50+
with development kits installed (`build`).
4651

4752
## Running Docker container interactively
4853

0 commit comments

Comments
 (0)