Skip to content

Commit

Permalink
Try using actions/download artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
coldav committed Mar 6, 2025
1 parent d2078d7 commit 10c96b3
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 21 deletions.
16 changes: 16 additions & 0 deletions .github/actions/test_llvm_download/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: test llvm download
description: test llvm download

inputs:
token:
description: 'token for download'

runs:
using: "composite"
steps:
- name: Try downloading llvm install
uses: actions/download-artifact@v4
with:
name: llvm-ubuntu-22.04-x86_64-19-RelAssert
run-id: 13593517156
github-token: ${{ inputs.token }}
55 changes: 34 additions & 21 deletions .github/workflows/create_llvm_artefacts_caller.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,44 @@ concurrency:
cancel-in-progress: true

jobs:
build_llvm_artefacts:
name: Call PR testing on schedule
if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') || github.event_name == 'pull_request' }}
permissions:
actions: write
uses: ./.github/workflows/create_llvm_artefacts.yml
secrets: inherit
with:
llvm_branch: 'release/19.x'
llvm_branch_id: '19'
# build_llvm_artefacts:
# name: Call PR testing on schedule
# if: ${{ (github.event_name == 'schedule' && github.repository == 'uxlfoundation/oneapi-construction-kit') || github.event_name == 'pull_request' }}
# permissions:
# actions: write
# uses: ./.github/workflows/create_llvm_artefacts.yml
# secrets: inherit
# with:
# llvm_branch: 'release/19.x'
# llvm_branch_id: '19'

use_llvm_artefacts:
needs: [build_llvm_artefacts]
# needs: [build_llvm_artefacts]
runs-on: ubuntu-22.04
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: set up gh
uses: ./.github/actions/setup_gh
with:
os: ${{ contains( matrix.target, 'windows') && 'windows' || 'ubuntu' }}
token: ${{ secrets.GITHUB_TOKEN }}
# - name: set up gh
# uses: ./.github/actions/setup_gh
# with:
# os: ${{ contains( matrix.target, 'windows') && 'windows' || 'ubuntu' }}
# token: ${{ secrets.GITHUB_TOKEN }}
# - name: Try downloading llvm install
# uses: actions/download-artifact@v4
# with:
# name: llvm-ubuntu-22.04-x86_64-19-RelAssert
# run-id: 13593517156
# github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Try downloading llvm install
run: |
echo workflow id is ${{needs.build_llvm_artefacts.outputs.workflow_id}}
# TODO: We need to add tarring there and here
gh run download ${{github.run_id}} -n llvm-ubuntu-22.04-x86_64-19-RelAssert -D llvm_install
ls -l llvm_install/bin
uses: ./.github/actions/test_llvm_download
with:
# name: llvm-ubuntu-22.04-x86_64-19-RelAssert
# run-id: 13593517156
token: ${{ secrets.GITHUB_TOKEN }}

# - name: Try downloading llvm install
# run: |
# echo workflow id is ${{needs.build_llvm_artefacts.outputs.workflow_id}}
# # TODO: We need to add tarring there and here
# gh run download ${{github.run_id}} -n llvm-ubuntu-22.04-x86_64-19-RelAssert -D llvm_install
# ls -l llvm_install/bin

0 comments on commit 10c96b3

Please sign in to comment.