Skip to content

Commit 500085c

Browse files
author
Colin Davidson
committed
Try using actions/download artifact
1 parent 57f3443 commit 500085c

File tree

5 files changed

+81
-19
lines changed

5 files changed

+81
-19
lines changed

.github/actions/setup_build/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,15 @@ runs:
9595
9696
ln -s /usr/lib/llvm-${{ inputs.llvm_version }} llvm_install
9797
98+
- name: download llvm native
99+
if: inputs.llvm_source != 'install' && inputs.llvm_source != 'cache'
100+
uses: actions/download-artifact@v4
101+
with:
102+
name: llvm-${{ inputs.os }}-${{ steps.set_llvm_key.outputs.key_version }}-${{ steps.set_llvm_key.outputs.key_native_arch }}-v${{ inputs.llvm_version }}-${{ inputs.llvm_build_type }}
103+
#llvm-ubuntu-22.04-x86_64-19-RelAssert
104+
run-id: ${{ inputs.inputs.llvm_source}}
105+
github-token: ${{ env.GH_TOKEN }}
106+
98107
- shell: bash
99108
if: inputs.cross_arch != 'none'
100109
run: mv llvm_install llvm_install_native
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: test llvm download
2+
description: test llvm download
3+
4+
inputs:
5+
token:
6+
description: 'token for download'
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Try downloading llvm install
12+
uses: actions/download-artifact@v4
13+
with:
14+
name: llvm-ubuntu-22.04-x86_64-19-RelAssert
15+
run-id: 13593517156
16+
# github-token: ${{ inputs.token }}
17+
github-token: ${{ env.GH_TOKEN }}

.github/workflows/create_llvm_artefacts_caller.yml

Lines changed: 48 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,19 @@ concurrency:
1414
cancel-in-progress: true
1515

1616
jobs:
17-
build_llvm_artefacts:
18-
name: Call PR testing on schedule
19-
if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') || github.event_name == 'pull_request' }}
20-
permissions:
21-
actions: write
22-
uses: ./.github/workflows/create_llvm_artefacts.yml
23-
secrets: inherit
24-
with:
25-
llvm_branch: 'release/19.x'
26-
llvm_branch_id: '19'
17+
# build_llvm_artefacts:
18+
# name: Call PR testing on schedule
19+
# if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') || github.event_name == 'pull_request' }}
20+
# permissions:
21+
# actions: write
22+
# uses: ./.github/workflows/create_llvm_artefacts.yml
23+
# secrets: inherit
24+
# with:
25+
# llvm_branch: 'release/19.x'
26+
# llvm_branch_id: '19'
2727

2828
use_llvm_artefacts:
29-
needs: [build_llvm_artefacts]
29+
# needs: [build_llvm_artefacts]
3030
runs-on: ubuntu-22.04
3131
steps:
3232
- name: Checkout repo
@@ -35,10 +35,40 @@ jobs:
3535
uses: ./.github/actions/setup_gh
3636
with:
3737
os: ${{ contains( matrix.target, 'windows') && 'windows' || 'ubuntu' }}
38-
token: ${{ secrets.GITHUB_TOKEN }}
39-
- name: Try downloading llvm install
40-
run: |
41-
echo workflow id is ${{needs.build_llvm_artefacts.outputs.workflow_id}}
42-
# TODO: We need to add tarring there and here
43-
gh run download ${{github.run_id}} -n llvm-ubuntu-22.04-x86_64-19-RelAssert -D llvm_install
44-
ls -l llvm_install/bin
38+
token: ${{ secrets.GITHUB_TOKEN }}
39+
# - name: Try downloading llvm install
40+
# uses: actions/download-artifact@v4
41+
# with:
42+
# name: llvm-ubuntu-22.04-x86_64-19-RelAssert
43+
# run-id: 13593517156
44+
# github-token: ${{ secrets.GITHUB_TOKEN }}
45+
# - name: Try downloading llvm install
46+
# uses: ./.github/actions/test_llvm_download
47+
# with:
48+
# # name: llvm-ubuntu-22.04-x86_64-19-RelAssert
49+
# # run-id: 13593517156
50+
# token: ${{ secrets.GITHUB_TOKEN }}
51+
52+
uses: ./.github/workflows/planned_testing.yml
53+
with:
54+
target_list: '[ "host_x86_64_linux"]'
55+
ock: true
56+
test_tornado: false
57+
test_sycl_cts: false
58+
test_opencl_cts: false
59+
llvm_source: 13593517156
60+
# Have a pull request setting which can be used to test the flow as best as possible
61+
# in a reasonable time
62+
63+
# The following can be used to download from a previous workflow run (change id)
64+
# download_ock_artefact: host_x86_64_linux=12915462445;host_aarch64_linux=12915462445
65+
# download_dpcpp_artefact: host_x86_64_linux=12915462445;host_aarch64_linux=12915462445
66+
# download_sycl_cts_artefact: host_x86_64_linux=12915462445;host_aarch64_linux=12915462445
67+
pull_request: ${{ github.event_name == 'pull_request' }}
68+
69+
# - name: Try downloading llvm install
70+
# run: |
71+
# echo workflow id is ${{needs.build_llvm_artefacts.outputs.workflow_id}}
72+
# # TODO: We need to add tarring there and here
73+
# gh run download ${{github.run_id}} -n llvm-ubuntu-22.04-x86_64-19-RelAssert -D llvm_install
74+
# ls -l llvm_install/bin

.github/workflows/planned_testing.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ on:
4242
required: false
4343
type: string
4444
default: ''
45+
llvm_source:
46+
required: false
47+
type: string
48+
default: 'cache'
4549

4650
permissions:
4751
packages: read
@@ -150,6 +154,7 @@ jobs:
150154
target: ${{ matrix.target }}
151155
llvm_version: ${{ inputs.llvm_version }}
152156
download_ock_artefact: ${{ inputs.download_ock_artefact }}
157+
llvm_source: ${{ inputs.llvm_source }}
153158

154159
build_icd:
155160
if: inputs.test_tornado || inputs.test_opencl_cts || inputs.test_sycl_cts

.github/workflows/run_pr_tests_caller.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ concurrency:
2525
jobs:
2626
run-prs:
2727
name: Call PR testing on schedule
28-
if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') || github.event_name == 'pull_request' }}
28+
if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') }}
29+
#|| github.event_name == 'pull_request' }}
2930
uses: ./.github/workflows/run_pr_tests.yml
3031
with:
3132
is_pull_request: ${{ github.event_name != 'schedule' }}

0 commit comments

Comments
 (0)