This commit is contained in:
awalsh128 2026-01-05 17:50:30 -08:00
parent d1802cbf31
commit f1a124df57

View file

@ -17,29 +17,16 @@ env:
SHELLOPTS: errexit:pipefail SHELLOPTS: errexit:pipefail
jobs: jobs:
check_distribute: build_binaries:
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: name: Build binaries
distribute_exists: ${{ steps.check_distribute.outputs.distribute_exists }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Check if distribute directory exists - uses: ./.github/workflows/build-distribute.yml
id: check_distribute
run: |
if [ -d "distribute" ]; then
echo "distribute_exists=false" >> $GITHUB_OUTPUT
else
echo "distribute_exists=false" >> $GITHUB_OUTPUT
fi
build_distribute: # All other jobs should depend on build_binaries (if run) or check_distribute (if not needed)
needs: check_distribute
if: needs.check_distribute.outputs.distribute_exists == 'false'
uses: ./.github/workflows/build-distribute.yml
# All other jobs should depend on build_distribute (if run) or check_distribute (if not needed)
list_all_versions: list_all_versions:
needs: [build_distribute, check_distribute] needs: [build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: List all package versions (including deps). name: List all package versions (including deps).
steps: steps:
@ -65,7 +52,7 @@ jobs:
shell: bash shell: bash
list_versions: list_versions:
needs: [build_distribute, check_distribute] needs: [build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: List package versions. name: List package versions.
steps: steps:
@ -90,7 +77,7 @@ jobs:
shell: bash shell: bash
standard_workflow_install: standard_workflow_install:
needs: [build_distribute, check_distribute] needs: [build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Standard workflow install package and cache. name: Standard workflow install package and cache.
steps: steps:
@ -110,7 +97,7 @@ jobs:
shell: bash shell: bash
standard_workflow_install_with_new_version: standard_workflow_install_with_new_version:
needs: [standard_workflow_install, build_distribute, check_distribute] needs: [standard_workflow_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Standard workflow packages with new version. name: Standard workflow packages with new version.
steps: steps:
@ -131,7 +118,7 @@ jobs:
shell: bash shell: bash
standard_workflow_restore: standard_workflow_restore:
needs: [standard_workflow_install, build_distribute, check_distribute] needs: [standard_workflow_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Standard workflow restore cached packages. name: Standard workflow restore cached packages.
steps: steps:
@ -151,7 +138,7 @@ jobs:
shell: bash shell: bash
standard_workflow_restore_with_packages_out_of_order: standard_workflow_restore_with_packages_out_of_order:
needs: [standard_workflow_install, build_distribute, check_distribute] needs: [standard_workflow_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Standard workflow restore with packages out of order. name: Standard workflow restore with packages out of order.
steps: steps:
@ -171,7 +158,7 @@ jobs:
shell: bash shell: bash
standard_workflow_add_package: standard_workflow_add_package:
needs: [standard_workflow_install, build_distribute, check_distribute] needs: [standard_workflow_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Standard workflow add another package. name: Standard workflow add another package.
steps: steps:
@ -191,7 +178,7 @@ jobs:
shell: bash shell: bash
standard_workflow_restore_add_package: standard_workflow_restore_add_package:
needs: [standard_workflow_add_package, build_distribute, check_distribute] needs: [standard_workflow_add_package, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Standard workflow restore added package. name: Standard workflow restore added package.
steps: steps:
@ -367,7 +354,7 @@ jobs:
debug: ${{ env.DEBUG }} debug: ${{ env.DEBUG }}
regression_84_literal_block_restore: regression_84_literal_block_restore:
needs: [regression_84_literal_block_install, build_distribute, check_distribute] needs: [regression_84_literal_block_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Restore multiline package listing using literal block style (regression issue #84)." name: "Restore multiline package listing using literal block style (regression issue #84)."
steps: steps:
@ -400,7 +387,7 @@ jobs:
debug: ${{ env.DEBUG }} debug: ${{ env.DEBUG }}
regression_84_folded_block_restore: regression_84_folded_block_restore:
needs: [regression_84_folded_block_install, build_distribute, check_distribute] needs: [regression_84_folded_block_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Restore multiline package listing using literal block style (regression issue #84)." name: "Restore multiline package listing using literal block style (regression issue #84)."
steps: steps:
@ -453,7 +440,7 @@ jobs:
debug: ${{ env.DEBUG }} debug: ${{ env.DEBUG }}
regression_106_restore: regression_106_restore:
needs: [regression_106_install, build_distribute, check_distribute] needs: [regression_106_install, build_binaries]
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Stale apt repo not finding package on restore, restore phase (regression issue #106)." name: "Stale apt repo not finding package on restore, restore phase (regression issue #106)."
steps: steps: