-
Notifications
You must be signed in to change notification settings - Fork 802
[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
Changes from 24 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
327d6a2
[CI] Experimental Windows build
beb41f0
discover msvc?
1676bb9
set env?
404fee1
more env
674b299
update version
0925ae7
copy env
87ec293
move to nightly
2c53912
Merge branch 'sycl' into experimental_windows_build
9237aa4
more fixes
202292d
propagate compiler
74ebfaa
save logs
4b6da79
go back to msvc
be2c30f
add /FS flag
00f1af9
massage compiler flags
0d90ae0
more options massaging
f8a9c04
bad syntax
475f08e
damn cmake
227b3c6
i just want the compiler to build my program am i asking for too much
b86751f
dear compiler please build this commit i swear it is good
80b16e3
disable sccache
9cb9a51
ok, sccache is guilty, can we change that?
37a2766
what's going on?
1703c6d
test
11bda34
final?
fdee135
Update .github/workflows/sycl_windows_build_and_test.yml
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,68 @@ | ||
| 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 | ||
| choco install -y sccache --version 0.2.15 | ||
alexbatashev marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 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/**/* | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.