Skip to content

Commit 68fbcae

Browse files
committed
Hacks to try and run just printf test to assist debugging
1 parent 44e21bd commit 68fbcae

File tree

2 files changed

+336
-315
lines changed

2 files changed

+336
-315
lines changed

.github/actions/do_build_pr/run_windows_msvc_x86_64_llvm_latest_cl3_0_offline/action.yml

+33-13
Original file line numberDiff line numberDiff line change
@@ -20,24 +20,44 @@ runs:
2020
- name: build ock x86_64
2121
uses: ./.github/actions/do_build_ock
2222
with:
23-
build_targets: ${{ inputs.cache_seed == 'true' && 'UnitCL clc' || 'check-ock' }}
23+
build_targets: UnitCL
24+
#${{ inputs.cache_seed == 'true' && 'UnitCL clc' || 'check-ock' }}
2425
enable_api: ""
2526
builtin_kernel: ON
27+
debug_support: ON
2628
shell_to_use: pwsh
2729
gtest_launcher: "python3;-u;${{ github.workspace }}/scripts/gtest-terse-runner.py"
28-
debug_support: ON
2930
enable_unitcl_expensive: ${{ !inputs.is_pull_request && 'ON' || 'OFF' }}
3031
offline_kernel_tests: ${{ inputs.cache_seed == 'true' && 'OFF' || 'ON' }}
3132

32-
- name: build ock x86_64 offline
33-
uses: ./.github/actions/do_build_ock
33+
- name: setenvs
34+
shell: bash
35+
run: |
36+
echo "CA_EXTRA_COMPILE_OPTS=-cl-wfv=never" >> $env:GITHUB_ENV
37+
echo "CA_LLVM_OPTIONS=-print-before-all -print-after-all" >> $env:GITHUB_ENV
38+
39+
- name: run stuff
40+
shell: pwsh
41+
run: |
42+
powershell.exe -noprofile -c "${{ github.workspace }}/build/bin/UnitCL --gtest_filter=Execution/PrintfExecution.Printf_03_String/OpenCLC > windows_out.txt 2>&1; exit 0"
43+
cat windows_out.txt
44+
45+
- name: upload artifact
46+
uses: actions/upload-artifact@v4
3447
with:
35-
build_targets: ${{ inputs.cache_seed == 'true' && 'UnitCL' || 'check-ock' }}
36-
runtime_compiler_enabled: OFF
37-
external_clc: "${{ github.workspace }}/build/bin/clc.exe"
38-
shell_to_use: pwsh
39-
gtest_launcher: "python3;-u;${{ github.workspace }}/scripts/gtest-terse-runner.py"
40-
debug_support: ON
41-
install_dir: ${{ github.workspace }}/install_offline
42-
build_dir: ${{ github.workspace }}/build_offline
43-
offline_kernel_tests: ${{ inputs.cache_seed == 'true' && 'OFF' || 'ON' }}
48+
name: windows_out
49+
path: windows_out.txt
50+
retention-days: 1
51+
52+
# - name: build ock x86_64 offline
53+
# uses: ./.github/actions/do_build_ock
54+
# with:
55+
# build_targets: ${{ inputs.cache_seed == 'true' && 'UnitCL' || 'check-ock' }}
56+
# runtime_compiler_enabled: OFF
57+
# external_clc: "${{ github.workspace }}/build/bin/clc.exe"
58+
# shell_to_use: pwsh
59+
# gtest_launcher: "python3;-u;${{ github.workspace }}/scripts/gtest-terse-runner.py"
60+
# debug_support: ON
61+
# install_dir: ${{ github.workspace }}/install_offline
62+
# build_dir: ${{ github.workspace }}/build_offline
63+
# offline_kernel_tests: ${{ inputs.cache_seed == 'true' && 'OFF' || 'ON' }}

0 commit comments

Comments
 (0)