Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/actions/build-binary-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@ inputs:
arch:
description: "Architecture to build for"
required: true
checkout_ref:
description: "Ref to checkout"
required: false
default: ''

runs:
using: "composite"
steps:
- uses: actions/checkout@v4
ref: ${{ inputs.checkout_ref || '' }}
- name: Determine build architecture
shell: bash
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
|| github.event_name == 'workflow_call')
&& 'unstable'
|| ''
}}
}}
checkout_ref: ${{ github.ref_name == 'unstable' && 'unstable' || '' }}
9 changes: 9 additions & 0 deletions .github/workflows/build-n-test-all-distros.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
type: string
SMOKE_TEST_IMAGES:
type: string
checkout_ref:
type: string
default: ''


jobs:
Expand All @@ -26,6 +29,7 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
ref: ${{ inputs.checkout_ref || '' }}
- name: Ensure Release Branch
if: inputs.release_tag != '' && inputs.release_tag != 'unstable'
id: ensure-branch
Expand All @@ -38,6 +42,7 @@ jobs:
with:
dist: ${{ matrix.dist }}
release_tag: ${{ inputs.release_tag }}
checkout_ref: ${{ inputs.checkout_ref || '' }}

build-binary-package:
runs-on: ${{ contains(matrix.arch, 'arm') && 'ubuntu24-arm64-2-8' || 'ubuntu-24.04' }}
Expand All @@ -50,6 +55,7 @@ jobs:
needs: build-source-package
steps:
- name: Checkout code
ref: ${{ inputs.checkout_ref || '' }}
uses: actions/checkout@v4
- name: Ensure Release Branch
if: inputs.release_tag != '' && inputs.release_tag != 'unstable'
Expand All @@ -64,6 +70,7 @@ jobs:
dist: ${{ matrix.dist }}
arch: ${{ matrix.arch }}
run_id: ${{ github.run_id }}
checkout_ref: ${{ inputs.checkout_ref || '' }}

smoke-test-archs:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -93,8 +100,10 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v4
ref: ${{ inputs.checkout_ref || '' }}
- uses: ./.github/actions/run-smoke-tests
with:
image: ${{ matrix.image }}
arch: ${{ matrix.arch }}
run_id: ${{ github.run_id }}
checkout_ref: ${{ inputs.checkout_ref || '' }}