File tree Expand file tree Collapse file tree
do_build_pr/run_ubuntu_gcc_x86_64_refsi_tutorial Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,6 +110,9 @@ inputs:
110110 toolchain_file :
111111 description : " Path to toolchain file"
112112 default : " "
113+ source_dir :
114+ description : ' cmake source directory'
115+ default : ' .'
113116
114117runs :
115118 # We don't want a new docker just a list of steps, so mark as composite
@@ -168,7 +171,7 @@ runs:
168171 -DCA_BUILD_32_BITS=${{ inputs.build_32_bit }}
169172 -DCMAKE_TOOLCHAIN_FILE=${{ inputs.toolchain_file }}
170173 ${{ inputs.extra_flags }}
171- .
174+ ${{ inputs.source_dir }}
172175 - name : build_ock
173176 shell : ${{ inputs.shell_to_use }}
174177 run :
Original file line number Diff line number Diff line change 1+ name : build_pr_ubuntu_gcc_x86_64_refsi_tutorial
2+ description : Build pr ubuntu_gcc_x86_64_refsi_tutorial
3+
4+ inputs :
5+ cache_seed :
6+ type : boolean
7+ default : false
8+
9+ runs :
10+ using : " composite"
11+ steps :
12+ # TODO: refsi_tutorial start
13+ - name : remove any old dirs and set up new target
14+ shell : bash
15+ run : |
16+ rm -rf build
17+ git config --global --add safe.directory $GITHUB_WORKSPACE
18+ virtualenv newenv
19+ source newenv/bin/activate
20+ pip install cookiecutter
21+ scripts/setup_new_target_tutorial.sh -s end -e $GITHUB_WORKSPACE/refsi_tutorial -f "refsi_wrapper_pass;clmul;replace_mem" $PWD
22+
23+ - name : build refsi_tutorial
24+ uses : ./.github/actions/do_build_ock
25+ with :
26+ build_targets : install
27+ mux_targets_enable : refsi_tutorial
28+ use_linker : gold
29+ debug_support : ON
30+ offline_kernel_tests : OFF
31+ source_dir : $GITHUB_WORKSPACE/refsi_tutorial
32+ extra_flags : ' -DCA_REFSI_TUTORIAL_ENABLED=ON -DCA_EXTERNAL_ONEAPI_CON_KIT_DIR=$GITHUB_WORKSPACE -DCA_EXTERNAL_REFSI_TUTORIAL_HAL_DIR=$GITHUB_WORKSPACE/refsi_tutorial/hal_refsi_tutorial'
33+
34+ - name : run test
35+ if : inputs.cache_seed != 'true'
36+ shell : bash
37+ # Run just a quick UnitCL test for now, hal_tutorial causes some failures at present
38+ run : |
39+ ninja -Cbuild check-ock-refsi_tutorial-lit
40+ OCL_ICD_VENDORS=/dev/null OCL_ICD_FILENAMES=$PWD/build/oneAPIConstructionKit/lib/libCL.so \
41+ $PWD/build/oneAPIConstructionKit/bin/UnitCL \
42+ --gtest_filter=Execution/Execution.Task_01_02_Add/OpenCLC
Original file line number Diff line number Diff line change 9999 uses : ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_refsi_g1_wi_cl3_0
100100 with :
101101 cache_seed : true
102-
102+ - name : build ubuntu_gcc_x86_64_refsi_tutorial
103+ uses : ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_refsi_tutorial
104+ with :
105+ cache_seed : true
103106 # aarch 64
104107 ubuntu_22_llvm_current_aarch64_jobs :
105108 if : github.repository == 'uxlfoundation/oneapi-construction-kit' || github.event_name != 'schedule'
Original file line number Diff line number Diff line change @@ -388,3 +388,24 @@ jobs:
388388 # path: |
389389 # oneapi-construction-kit/build/*.fail
390390 # oneapi-construction-kit/build/*.log
391+
392+ # Based on: mr-run-ubuntu-gcc-x86_64-refsi-tutorial-end:
393+ run-ubuntu-gcc-x86_64-refsi-tutorial-end :
394+ if : contains(inputs.target_list, 'host_refsi_linux')
395+ runs-on : ubuntu-22.04
396+ container :
397+ image : ghcr.io/uxlfoundation/ock_ubuntu_22.04-x86-64:latest
398+ volumes :
399+ - ${{github.workspace}}:${{github.workspace}}
400+ timeout-minutes : 60
401+ steps :
402+ - name : Checkout repo
403+ uses : actions/checkout@v4
404+ - name : setup-ubuntu
405+ uses : ./.github/actions/setup_build
406+ with :
407+ llvm_version : ${{ inputs.llvm_current }}
408+ llvm_source : ${{ inputs.llvm_source}}
409+ github_token : ${{ secrets.GITHUB_TOKEN }}
410+ - name : build ock
411+ uses : ./.github/actions/do_build_pr/run_ubuntu_gcc_x86_64_refsi_tutorial
You can’t perform that action at this time.
0 commit comments