Skip to content

Commit d3e3cec

Browse files
committed
Update actions to verify binaries are present
1 parent f535b6c commit d3e3cec

3 files changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/action-tests.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,24 @@ env:
1717
SHELLOPTS: errexit:pipefail
1818

1919
jobs:
20+
check_distribute_and_build:
21+
runs-on: ubuntu-latest
22+
name: Check and build distribute if needed
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: Check if distribute directory exists
26+
id: check_distribute
27+
run: |
28+
if [ ! -d "distribute" ]; then
29+
echo "distribute_exists=false" >> $GITHUB_OUTPUT
30+
else
31+
echo "distribute_exists=true" >> $GITHUB_OUTPUT
32+
fi
33+
- name: Trigger build-distribute workflow
34+
if: steps.check_distribute.outputs.distribute_exists == 'false'
35+
uses: ./.github/workflows/build-distribute.yml
36+
with:
37+
ref: ${{ github.ref }}
2038
list_all_versions:
2139
runs-on: ubuntu-latest
2240
name: List all package versions (including deps).

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,24 @@ env:
1414
DEBUG: false
1515
SHELLOPTS: errexit:pipefail
1616
jobs:
17+
check_distribute_and_build:
18+
runs-on: ubuntu-latest
19+
name: Check and build distribute if needed
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Check if distribute directory exists
23+
id: check_distribute
24+
run: |
25+
if [ ! -d "distribute" ]; then
26+
echo "distribute_exists=false" >> $GITHUB_OUTPUT
27+
else
28+
echo "distribute_exists=true" >> $GITHUB_OUTPUT
29+
fi
30+
- name: Trigger build-distribute workflow
31+
if: steps.check_distribute.outputs.distribute_exists == 'false'
32+
uses: ./.github/workflows/build-distribute.yml
33+
with:
34+
ref: ${{ github.ref }}
1735
build:
1836
runs-on: ubuntu-latest
1937
steps:

.github/workflows/pr.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ concurrency:
88
permissions: read-all
99

1010
jobs:
11+
check_distribute_and_build:
12+
runs-on: ubuntu-latest
13+
name: Check and build distribute if needed
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Check if distribute directory exists
17+
id: check_distribute
18+
run: |
19+
if [ ! -d "distribute" ]; then
20+
echo "distribute_exists=false" >> $GITHUB_OUTPUT
21+
else
22+
echo "distribute_exists=true" >> $GITHUB_OUTPUT
23+
fi
24+
- name: Trigger build-distribute workflow
25+
if: steps.check_distribute.outputs.distribute_exists == 'false'
26+
uses: ./.github/workflows/build-distribute.yml
27+
with:
28+
ref: ${{ github.ref }}
1129
trunk_check:
1230
name: Trunk Code Quality Runner
1331
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)