Skip to content

Commit 29740c9

Browse files
author
Colin Davidson
committed
trying artefacts
1 parent d922b8a commit 29740c9

2 files changed

Lines changed: 27 additions & 46 deletions

File tree

.github/workflows/workflow1.yml

Lines changed: 24 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,32 @@
11
on:
2-
workflow_dispatch:
3-
inputs:
4-
llvm_version:
5-
description: 'Log level'
6-
default: 18
7-
type: choice
8-
options:
9-
- 17
10-
- 18
11-
- 19
12-
update_cache:
13-
description: 'update_cache'
14-
default: false
15-
type: boolean
162
pull_request:
173

184
jobs:
19-
print-tag:
20-
runs-on: ubuntu-latest
21-
if: ${{ github.event_name == 'workflow_dispatch' }}
5+
job_1:
6+
runs-on: ubuntu-latest
227
steps:
23-
- name: Print the input tag to STDOUT
8+
- name: cp ls
249
run: |
25-
echo The llvm_version are ${{ inputs.llvm_version }}, benchmark_testing is ${{ inputs.update_cache }}
26-
cat "$GITHUB_ENV"
27-
echo ${{ github.event }}
28-
echo "LLVM_VERSION=${{ inputs.llvm_version }}" >> $GITHUB_ENV"
29-
echo "UPDATE_CACHE=${{ inputs.update_cache }}" >> $GITHUB_ENV"
10+
cp `which ls` myls
11+
12+
- name: 'Upload Artifact'
13+
uses: actions/upload-artifact@v4
14+
with:
15+
name: ock
16+
path: myls
17+
retention-days: 5
3018

31-
# run-on-pull:
32-
# if: ${{ github.event_name == 'pull_request' }}
33-
# runs-on: ubuntu-latest
34-
# steps:
35-
# - name: Print the input tag to STDOUT
36-
# run: |
37-
# echo The llvm_version are ${{ inputs.llvm_version }}, update_cache is ${{ inputs.update_cache }}
38-
# cat "$GITHUB_ENV"
39-
# echo ${{ github.event }}
40-
# echo "LLVM_VERSION=18" >> $env:GITHUB_ENV"
41-
# echo "UPDATE_CACHE=false" >> $env:GITHUB_ENV"
42-
43-
run-on-pull_2:
44-
name: Call other workflow
45-
if: ${{ github.event_name == 'pull_request' }}
46-
# needs: run-on-pull
47-
uses: ./.github/workflows/workflow_callee.yml
48-
with:
49-
llvm_version: 18
50-
update_cache: true
19+
job_2:
20+
name: do ls
21+
needs: job_1
22+
runs-on: ubuntu-latest
23+
steps:
24+
- name: Download math result for job 1
25+
uses: actions/download-artifact@v4
26+
with:
27+
name: ock
28+
- shell: bash
29+
run: |
30+
chmod +x myls
31+
./myls
5132

.github/workflows/workflow_callee.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ on:
1515
update_cache:
1616
required: true
1717
type: boolean
18-
pull_request:
19-
paths:
20-
- '.github/workflows/workflow_callee.yml'
18+
# pull_request:
19+
# paths:
20+
# - '.github/workflows/workflow_callee.yml'
2121

2222
env:
2323
LLVM_VERSION: 17

0 commit comments

Comments
 (0)