-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
44 additions
and
45 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -3,36 +3,33 @@ name: testWindows | |
on: [push, pull_request] | ||
|
||
env: | ||
BUILD_TYPE: Release | ||
BUILD_TYPE: Debug | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: 'recursive' | ||
|
||
- name: Update all submodules | ||
run: | | ||
git submodule sync | ||
git submodule update --init --recursive | ||
# - name: Prepare Vulkan SDK | ||
# uses: humbletim/[email protected] | ||
# with: | ||
# vulkan-query-version: 1.3.275.0 | ||
# vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Cross, SPIRV-Tools, Glslang | ||
# vulkan-use-cache: true | ||
# | ||
# - name: Download glslangValidator | ||
# run: curl -L -o glslang.zip https://github.com/KhronosGroup/glslang/releases/download/main-tot/glslang-master-windows-Release.zip | ||
# | ||
# - name: Extract glslangValidator | ||
# shell: powershell | ||
# run: Expand-Archive -Path glslang.zip -DestinationPath ${{github.workspace}}/glslang | ||
# | ||
# - name: Add glslangValidator to PATH | ||
# run: echo "${{github.workspace}}/glslang/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: Prepare Vulkan SDK | ||
uses: humbletim/[email protected] | ||
with: | ||
vulkan-query-version: 1.3.275.0 | ||
vulkan-components: Vulkan-Headers, Vulkan-Loader, SPIRV-Cross, SPIRV-Tools, Glslang | ||
vulkan-use-cache: true | ||
|
||
- name: Download glslangValidator | ||
run: curl -L -o glslang.zip https://github.com/KhronosGroup/glslang/releases/download/main-tot/glslang-master-windows-Release.zip | ||
|
||
- name: Extract glslangValidator | ||
shell: powershell | ||
run: Expand-Archive -Path glslang.zip -DestinationPath ${{github.workspace}}/glslang | ||
|
||
- name: Add glslangValidator to PATH | ||
run: echo "${{github.workspace}}/glslang/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
|
||
- name: Install boost | ||
uses: MarkusJx/[email protected] | ||
|
@@ -48,25 +45,29 @@ jobs: | |
echo "${{github.workspace}}/boost" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
echo "${{github.workspace}}/boost/boost" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: Setup CUDA Toolkit | ||
id: cuda-toolkit | ||
shell: pwsh | ||
run: .\Scripts\setup-cuda.ps1 | ||
env: | ||
INPUT_CUDA_VERSION: 12.5.1 | ||
# - name: Setup CUDA Toolkit | ||
# id: cuda-toolkit | ||
# shell: pwsh | ||
# run: .\Scripts\setup-cuda.ps1 | ||
# env: | ||
# INPUT_CUDA_VERSION: 12.5.1 | ||
|
||
- name: Configure CMake | ||
run: cmake -B ${{github.workspace}}/build -DWERROR=YES -DRAYX_REQUIRES_CUDA=ON | ||
run: cmake -B ${{github.workspace}}/build -DWERROR=YES -DRAYX_ENABLE_CUDA=OFF | ||
|
||
- name: Build | ||
run: | | ||
type "${{github.workspace}}/build/CMakeCache.txt" | ||
echo "D:\a\rayx\rayx\vcpkg\installed\x64-windows\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
- name: Test | ||
# - name: Test | ||
# working-directory: ${{github.workspace}}/build/bin/release | ||
# run: ./rayx-core-tst -x | ||
|
||
- name: Run | ||
working-directory: ${{github.workspace}}/build/bin/release | ||
run: ./rayx-core-tst -x | ||
run: ./rayx -m 6 -x -i "${{github.workspace}}Scripts/benchmark-inputs/ReflectionZonePlateDefault200Toroid.rml"; Dir -Recurse C:\ProgramData\Microsoft\Windows\WER\ReportQueue | Get-Childitem | ||
|
||
- name: CPack | ||
run: | | ||
|
This file contains 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 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 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