Skip to content

Commit 1eb443f

Browse files
committed
test
Signed-off-by: Sarnie, Nick <[email protected]>
1 parent 7b2979c commit 1eb443f

File tree

3 files changed

+17
-26
lines changed

3 files changed

+17
-26
lines changed

.github/workflows/sycl-windows-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,16 @@ jobs:
7474
outputs:
7575
build_conclusion: ${{ steps.build.conclusion }}
7676
steps:
77+
- uses: actions/checkout@v4
78+
with:
79+
path: src
80+
ref: ${{ inputs.build_ref || github.sha }}
81+
fetch-depth: 1
7782
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
7883
with:
7984
arch: amd64
8085
- name: Setup oneAPI env
81-
uses: ./.github/workflows/sycl-windows-setup-oneapi-env.yml
86+
uses: ./src/devops/actions/setup_windows_oneapi_env
8287
if: ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
8388
with:
8489
runner: ${{ runner.name }}
@@ -89,11 +94,6 @@ jobs:
8994
echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
9095
echo "CCACHE_DIR=D:\github\_work\cache\${{ inputs.build_cache_suffix }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
9196
echo "CCACHE_MAXSIZE=10G" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
92-
- uses: actions/checkout@v4
93-
with:
94-
path: src
95-
ref: ${{ inputs.build_ref || github.sha }}
96-
fetch-depth: 1
9797
- name: Register cleanup after job is finished
9898
uses: ./src/devops/actions/cleanup
9999
- name: Configure

.github/workflows/sycl-windows-run-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,17 @@ jobs:
4747
environment: WindowsCILock
4848
env: ${{ fromJSON(inputs.env) }}
4949
steps:
50+
# TODO: use cached_checkout
51+
- uses: actions/checkout@v4
52+
with:
53+
persist-credentials: false
54+
ref: ${{ inputs.ref || github.sha }}
55+
path: llvm
5056
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
5157
with:
5258
arch: amd64
5359
- name: Setup oneAPI env
54-
uses: ./.github/workflows/sycl-windows-setup-oneapi-env.yml
60+
uses: ./llvm/devops/actions/setup_windows_oneapi_env
5561
if: ${{ always() && !cancelled() && inputs.compiler == 'icx' }}
5662
with:
5763
runner: ${{ inputs.runner }}
@@ -60,12 +66,6 @@ jobs:
6066
git config --system core.longpaths true
6167
git config --global core.autocrlf false
6268
echo "C:\Program Files\Git\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
63-
# TODO: use cached_checkout
64-
- uses: actions/checkout@v4
65-
with:
66-
persist-credentials: false
67-
ref: ${{ inputs.ref || github.sha }}
68-
path: llvm
6969
- name: Register cleanup after job is finished
7070
uses: ./llvm/devops/actions/cleanup
7171
- name: Download compiler toolchain

.github/workflows/sycl-windows-setup-oneapi-env.yml renamed to devops/actions/setup_windows_oneapi_env/action.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
1-
name: SYCL Windows setup oneAPI env
1+
name: Windows setup oneAPI env
22

3-
on:
4-
workflow_call:
5-
inputs:
6-
runner:
7-
description: 'The runner name'
8-
required: true
9-
type: string
10-
11-
jobs:
12-
set-env-vars-job:
13-
runs-on: ${{ fromJSON(inputs.runner) }}
14-
steps:
3+
runs:
4+
using: "composite"
5+
steps:
156
- name: Setup oneAPI env
167
shell: powershell
178
run: |

0 commit comments

Comments
 (0)