Skip to content

[CI] Add experimental Windows build in GitHub Actions nightly #5560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 25 commits into from
Feb 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/sycl_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ jobs:
build_cache_root: "/__w/"
build_artifact_suffix: default
lts_config: "ocl_gen9;ocl_x64;hip_amdgpu"

windows_default:
name: Windows (experimental)
if: github.repository == 'intel/llvm'
uses: ./.github/workflows/sycl_windows_build_and_test.yml

ubuntu2004_docker_build_push:
if: github.repository == 'intel/llvm'
runs-on: ubuntu-latest
Expand Down
67 changes: 67 additions & 0 deletions .github/workflows/sycl_windows_build_and_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: SYCL Windows Test

on:
workflow_call:

jobs:
build:
name: Build
runs-on: windows-2022
steps:
- uses: actions/checkout@v2
with:
path: src
fetch-depth: 1
- name: Install dependencies
shell: cmd
run: |
choco install -y cuda --version 11.6.0.51123
choco install -y ninja
refreshenv
echo CUDA_PATH=%CUDA_PATH%
echo CUDA_PATH=%CUDA_PATH% >> %GITHUB_ENV%
- uses: ilammy/msvc-dev-cmd@9f8ae839b01883414208f29e3e24524387f48e1f
with:
arch: amd64
- name: Setup Cache
uses: actions/cache@v2
if: ${{ github.event_name != 'pull_request' }}
id: cache
with:
path: cache
key: sycl-win-build-${{ github.sha }}
restore-keys: |
sycl-win-build-
- name: Configure
shell: cmd
env:
CUDA_PATH: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
CUDA_TOOLKIT_ROOT_DIR: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
# TODO switch to clang-cl and lld when this is fixed https://github.com/oneapi-src/level-zero/issues/83
# TODO enable sccache, when problems with PDB are resolved
run: |
mkdir build
mkdir install
IF NOT EXIST cache MKDIR cache
set SCCACHE_DIR=%GITHUB_WORKSPACE%\cache
set PATH=C:\ProgramData\chocolatey\lib\sccache\tools\sccache-v0.2.15-x86_64-pc-windows-msvc;%PATH%
python.exe src/buildbot/configure.py -o build ^
--cmake-opt="-DCMAKE_C_COMPILER=cl" ^
--cmake-opt="-DCMAKE_CXX_COMPILER=cl" ^
--cmake-opt="-DCMAKE_INSTALL_PREFIX=%GITHUB_WORKSPACE%\install" ^
--cuda
- name: Build
shell: cmd
env:
CUDA_PATH: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
CUDA_TOOLKIT_ROOT_DIR: 'C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6'
run: |
cmake --build build --target sycl-toolchain
- name: Install
shell: cmd
run: cmake --build build --target deploy-sycl-toolchain
- name: Upload toolchain
uses: actions/upload-artifact@v2
with:
name: sycl_windows_default
path: install/**/*