Skip to content

Commit e04e4ed

Browse files
committed
GitHub workflows: abi-stable: try to download the artifact
... and only rebuild it if necessary Signed-off-by: Martin Wilck <mwilck@suse.com>
1 parent 1ecbfae commit e04e4ed

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/abi-stable.yaml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,38 @@ jobs:
3030
- name: assert parent tag
3131
run: /bin/false
3232
if: ${{ env.PARENT_TAG == '' }}
33+
- name: try to download ABI for ${{ env.PARENT_TAG }}
34+
id: download_abi
35+
continue-on-error: true
36+
uses: dawidd6/action-download-artifact@v6
37+
with:
38+
workflow: abi-stable.yaml
39+
workflow_conclusion: ''
40+
branch: ${{ github.ref_name }}
41+
name: multipath-abi-${{ env.PARENT_TAG }}
42+
search_artifacts: true
43+
path: __unused__
3344
- name: update
45+
if: steps.download_abi.outcome != 'success'
3446
run: sudo apt-get update
3547
- name: dependencies
48+
if: steps.download_abi.outcome != 'success'
3649
run: >
3750
sudo apt-get install --yes gcc
3851
gcc make pkg-config abigail-tools
3952
libdevmapper-dev libreadline-dev libaio-dev libsystemd-dev
4053
libudev-dev libjson-c-dev liburcu-dev libcmocka-dev libedit-dev
4154
libmount-dev
4255
- name: checkout ${{ env.PARENT_TAG }}
56+
if: steps.download_abi.outcome != 'success'
4357
uses: actions/checkout@v4
4458
with:
4559
ref: ${{ env.PARENT_TAG }}
4660
- name: build ABI for ${{ env.PARENT_TAG }}
61+
if: steps.download_abi.outcome != 'success'
4762
run: make -j$(nproc) -Orecurse abi
4863
- name: save ABI
64+
if: steps.download_abi.outcome != 'success'
4965
uses: actions/upload-artifact@v4
5066
with:
5167
name: multipath-abi-${{ env.PARENT_TAG }}
@@ -74,13 +90,16 @@ jobs:
7490
ref: ${{ github.ref }}
7591
- name: download ABI for ${{ env.PARENT_TAG }}
7692
id: download_abi
77-
uses: actions/download-artifact@v4
93+
uses: dawidd6/action-download-artifact@v6
7894
with:
95+
workflow: abi-stable.yaml
96+
workflow_conclusion: ''
97+
branch: ${{ github.ref_name }}
7998
name: multipath-abi-${{ env.PARENT_TAG }}
99+
search_artifacts: true
80100
path: reference-abi
81101
- name: update
82102
run: sudo apt-get update
83-
if: steps.download_abi.outcome != 'success'
84103
- name: dependencies
85104
run: >
86105
sudo apt-get install --yes gcc

0 commit comments

Comments
 (0)