Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Sarnie, Nick <[email protected]>
  • Loading branch information
sarnex committed Dec 4, 2024
1 parent 77ade87 commit 1cca8c5
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 4 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/sycl-post-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ jobs:
&& success()
&& github.repository == 'intel/llvm'
uses: ./.github/workflows/sycl-windows-build.yml

with:
cc: icx
cxx: icpx

e2e-win:
needs: build-win
# Continue if build was successful.
Expand Down
44 changes: 41 additions & 3 deletions .github/workflows/sycl-windows-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ on:
description: 'Artifacts retention period'
type: string
default: 3
cc:
type: string
required: false
default: "cl"
cxx:
type: string
required: false
default: "cl"

outputs:
build_conclusion:
Expand Down Expand Up @@ -50,20 +58,50 @@ on:
type: choice
options:
- 3
cc:
type: choice
options:
- cl
- icx
cxx:
type: choice
options:
- cl
- icpx

permissions: read-all

jobs:
build:
name: Build + LIT
runs-on: [Windows, build]
runs-on: [Windows, build-test]
environment: WindowsCILock
# TODO use cached checkout
outputs:
build_conclusion: ${{ steps.build.conclusion }}
steps:
- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756
if: always() && !cancelled() && (contains(inputs.cc, 'cl') || contains(inputs.cxx, 'cl'))
with:
arch: amd64
- name: Set oneAPI env
if: always() && !cancelled() && (contains(inputs.cc, 'icx') || contains(inputs.cxx, 'icpx'))
shell: powershell
run: |
function Invoke-CmdScript {
param(
[String] $scriptName
)
$cmdLine = """$scriptName"" $args & set"
& $Env:SystemRoot\system32\cmd.exe /c $cmdLine |
select-string '^([^=]*)=(.*)$' | foreach-object {
$varName = $_.Matches[0].Groups[1].Value
$varValue = $_.Matches[0].Groups[2].Value
set-item Env:$varName $varValue
}
}
Invoke-CmdScript "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
- name: Set env
run: |
git config --system core.longpaths true
Expand All @@ -87,8 +125,8 @@ jobs:
IF NOT EXIST D:\github\_work\cache\${{inputs.build_cache_suffix}} MKDIR D:\github\_work\cache\${{inputs.build_cache_suffix}}
python.exe src/buildbot/configure.py -o build ^
--ci-defaults ^
--cmake-opt="-DCMAKE_C_COMPILER=cl" ^
--cmake-opt="-DCMAKE_CXX_COMPILER=cl" ^
--cmake-opt="-DCMAKE_C_COMPILER=${{inputs.cc}}" ^
--cmake-opt="-DCMAKE_CXX_COMPILER=${{inputs.cxx}}" ^
--cmake-opt="-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
--cmake-opt="-DCMAKE_CXX_COMPILER_LAUNCHER=sccache" ^
--cmake-opt="-DCMAKE_C_COMPILER_LAUNCHER=sccache" ^
Expand Down

0 comments on commit 1cca8c5

Please sign in to comment.