4
4
workflow_dispatch :
5
5
schedule :
6
6
- cron : ' 0 3 * * *'
7
+ pull_request :
8
+ paths :
9
+ - ' devops/containers/ubuntu2004_preinstalled.Dockerfile'
10
+ - ' .github/workflows/sycl_nightly.yml'
7
11
8
12
jobs :
9
13
ubuntu2004_build_test :
10
14
if : github.repository == 'intel/llvm'
11
15
uses : intel/llvm/.github/workflows/sycl_linux_build_and_test.yml@sycl
12
16
with :
13
- build_runs_on : sycl-precommit-linux
17
+ build_runs_on : build
14
18
build_github_cache : true
15
19
build_cache_root : " /__w/"
16
20
build_artifact_suffix : default
@@ -24,33 +28,30 @@ jobs:
24
28
with :
25
29
name : sycl_linux_default
26
30
path : devops/
27
- - name : Login to GitHub Container Registry
28
- uses : docker/login-action@v1
31
+ - name : Build and Push Container (with drivers)
32
+ uses : ./devops/actions/build_container
29
33
with :
30
- registry : ghcr.io
34
+ push : ${{ github.event_name != 'pull_request' }}
35
+ file : ubuntu2004_preinstalled
31
36
username : ${{ github.repository_owner }}
32
37
password : ${{ secrets.GITHUB_TOKEN }}
33
- - name : Build and Push Container (with drivers)
34
- uses : docker/build-push-action@v2
35
- with :
36
- push : true
37
38
build-args : |
38
39
base_image=ghcr.io/intel/llvm/ubuntu2004_intel_drivers
39
40
base_tag=latest
40
41
tags : |
41
42
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:${{ github.sha }}
42
43
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:latest
43
- context : ${{ github.workspace }}/devops
44
- file : ${{ github.workspace }}/devops/containers/ubuntu2004_preinstalled.Dockerfile
45
44
- name : Build and Push Container (no drivers)
46
- uses : docker/build-push-action@v2
45
+ uses : ./devops/actions/build_container
47
46
with :
48
- push : true
47
+ push : ${{ github.event_name != 'pull_request' }}
48
+ file : ubuntu2004_preinstalled
49
+ username : ${{ github.repository_owner }}
50
+ password : ${{ secrets.GITHUB_TOKEN }}
49
51
build-args : |
50
52
base_image=ghcr.io/intel/llvm/ubuntu2004_base
51
53
base_tag=latest
52
54
tags : |
53
55
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:no-drivers-${{ github.sha }}
54
56
ghcr.io/${{ github.repository }}/sycl_ubuntu2004_nightly:no-drivers
55
- context : ${{ github.workspace }}/devops
56
- file : ${{ github.workspace }}/devops/containers/ubuntu2004_preinstalled.Dockerfile
57
+
0 commit comments