@@ -6,6 +6,9 @@ concurrency:
66 group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
77 cancel-in-progress : true
88
9+ permissions :
10+ contents : read
11+
912jobs :
1013 ubuntu-build :
1114 name : Build - Ubuntu
3639 runs-on : ${{matrix.os}}
3740
3841 steps :
39- - uses : actions/checkout@v3
42+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4043
4144 - name : Install apt packages
4245 run : |
@@ -122,7 +125,7 @@ jobs:
122125 runs-on : ' ubuntu-22.04'
123126
124127 steps :
125- - uses : actions/checkout@v3
128+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
126129
127130 - name : Install pip packages
128131 run : pip install -r third_party/requirements.txt
@@ -163,18 +166,18 @@ jobs:
163166 strategy :
164167 matrix :
165168 adapter : [
166- {name: CUDA, triplet: nvptx64-nvidia-cuda, platform: ""},
167- {name: HIP, triplet: amdgcn-amd-amdhsa, platform: ""},
168- {name: L0, triplet: spir64, platform: ""},
169- {name: OPENCL, triplet: spir64, platform: "Intel(R) OpenCL"}
169+ {name: CUDA, platform: ""},
170+ {name: HIP, platform: ""},
171+ {name: L0, platform: ""},
172+ {name: OPENCL, platform: "Intel(R) OpenCL"}
170173 ]
171174 build_type : [Debug, Release]
172175 compiler : [{c: gcc, cxx: g++}, {c: clang, cxx: clang++}]
173176
174177 runs-on : ${{matrix.adapter.name}}
175178
176179 steps :
177- - uses : actions/checkout@v3
180+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
178181
179182 - name : Install pip packages
180183 run : pip install -r third_party/requirements.txt
@@ -198,8 +201,7 @@ jobs:
198201 -DUR_BUILD_ADAPTER_${{matrix.adapter.name}}=ON
199202 -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
200203 -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib
201- -DUR_CONFORMANCE_TARGET_TRIPLES=${{matrix.adapter.triplet}}
202- ${{ matrix.adapter.name == 'HIP' && '-DAMD_ARCH=gfx1030' || '' }}
204+ ${{ matrix.adapter.name == 'HIP' && '-DUR_CONFORMANCE_AMD_ARCH=gfx1030' || '' }}
203205 ${{ matrix.adapter.name == 'HIP' && '-DUR_HIP_PLATFORM=AMD' || '' }}
204206
205207 - name : Build
@@ -240,13 +242,13 @@ jobs:
240242 runs-on : ${{matrix.adapter.name}}
241243
242244 steps :
243- - uses : actions/checkout@v3
245+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
244246
245247 - name : Install pip packages
246248 run : pip install -r third_party/requirements.txt
247249
248250 - name : Init conda env
249- uses : conda-incubator/setup-miniconda@v2
251+ uses : conda-incubator/setup-miniconda@9f54435e0e72c53962ee863144e47a4b094bfd35 # v2.3.0
250252 with :
251253 miniconda-version : " latest"
252254 activate-environment : examples
@@ -306,9 +308,9 @@ jobs:
306308 runs-on : ${{matrix.os}}
307309
308310 steps :
309- - uses : actions/checkout@v3
311+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
310312
311- - uses : actions/setup-python@v4
313+ - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
312314 with :
313315 python-version : 3.9
314316
@@ -357,9 +359,9 @@ jobs:
357359 runs-on : ${{matrix.os}}
358360
359361 steps :
360- - uses : actions/checkout@v3
362+ - uses : actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
361363
362- - uses : actions/setup-python@v4
364+ - uses : actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
363365 with :
364366 python-version : 3.9
365367
0 commit comments