Skip to content

Commit a9efdb1

Browse files
Refactor build pipeline to reduce duplicate builds (#778)
1 parent 402e8b2 commit a9efdb1

25 files changed

+882
-1125
lines changed

.github/actions/push/action.yml

Lines changed: 0 additions & 75 deletions
This file was deleted.

.github/workflows/action-test.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
description: 'Tag to use'
88
type: 'string'
99
default: ''
10+
artifact:
11+
description: 'Artifact to use'
12+
type: 'string'
13+
default: ''
1014

1115
jobs:
1216
action-setup:
@@ -32,7 +36,12 @@ jobs:
3236
with:
3337
script: |
3438
const os = ['ubuntu-latest'];
35-
if (process.env.ACTION_CHANGED === 'true') {
39+
// Only run the additional builds if the action has changed, and this
40+
// is not a test with an artifact image. The additional runs are time
41+
// consuming so only do them if necessary. Don't run them for artifact
42+
// action tests because the test won't be multiplatform since the
43+
// artifact images contain only a single platform.
44+
if (process.env.ACTION_CHANGED === 'true' && '${{ inputs.artifact }}' === '') {
3645
os.push('ubuntu-24.04-arm');
3746
os.push('macos-13');
3847
}
@@ -50,6 +59,7 @@ jobs:
5059
- uses: actions/checkout@v4
5160
- uses: ./
5261
with:
62+
artifact: ${{ inputs.artifact }}
5363
tag: ${{ inputs.tag }}
5464
- name: "Run basic test making sure RPC and Horizon are available"
5565
run: >

.github/workflows/build-future.yml

Lines changed: 0 additions & 87 deletions
This file was deleted.

.github/workflows/build-latest.yml

Lines changed: 0 additions & 95 deletions
This file was deleted.

.github/workflows/build-start.yml

Lines changed: 0 additions & 93 deletions
This file was deleted.

0 commit comments

Comments
 (0)