Skip to content

Commit 6edfae8

Browse files
Add ock git tag for native_cpu (uxlfoundation#778)
1 parent d436c9a commit 6edfae8

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/actions/do_build_dpcpp/action.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ description: build dpc++
44
inputs:
55
target:
66
description: 'target architecture'
7+
ock_git_tag:
8+
description: 'dpcpp build config uses this ock Git tag. Note: "github.sha" is good for both schedule and pull_request events.'
9+
type: string
10+
default: ${{ github.sha }}
711
download_dpcpp_artefact:
812
description: 'download ock artefact rather than building, of form <target>=id;<target2=id2>. Special value of download_release applies to all targets.'
913
type: string
@@ -65,7 +69,11 @@ runs:
6569
fi
6670
cd llvm
6771
set -x
72+
# Note: Although CMake FetchContent will currently only handle branches and tags by default in
73+
# OCK_GIT_TAG, other refs are accessible via the formatting work-around used below, i.e.:
74+
# "${{ inputs.ock_git_tag }};GIT_CONFIG;remote.origin.fetch=+refs/pull/*:refs/pull/*"
6875
python3 buildbot/configure.py -o build/${{steps.calc_vars.outputs.arch}}-linux \
76+
-DOCK_GIT_TAG="${{ inputs.ock_git_tag }};GIT_CONFIG;remote.origin.fetch=+refs/pull/*:refs/pull/*" \
6977
--host-target="X86;AArch64;RISCV" --native_cpu \
7078
--llvm-external-projects=lld --cmake-opt=-DNATIVECPU_USE_OCK=ON \
7179
$CROSS_OPTS \

0 commit comments

Comments
 (0)