Skip to content
Merged
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
21 changes: 20 additions & 1 deletion .github/workflows/build-kernel-deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,10 @@ on:
description: 'pkg-linux-qcom packaging ref'
type: string
default: 'qcom/debian/latest'
ci-ref:
description: 'CI branch ref holding ci/scripts and ci/build-matrix.json (empty = the calling workflow''s own commit)'
type: string
default: ''
secrets:
DEBUSINE_USER:
description: 'Debusine account used to submit CI and release builds'
Expand Down Expand Up @@ -224,18 +228,33 @@ jobs:
# branch into a separate path so resolve-kernel-ref.sh,
# derive-localversion.sh, derive-debian-revision.sh, and the
# suite_suffix_mapping are available.
#
# github.sha is the *caller's* commit, so it only names a CI commit
# when the caller itself runs on main, as daily.yml and release.yml do.
# A caller on a packaging branch must pass ci-ref, or the sparse
# checkout silently yields nothing and the copy below fails.
uses: actions/checkout@v4
with:
persist-credentials: false
ref: ${{ github.sha }}
ref: ${{ inputs.ci-ref || github.sha }}
path: .ci-branch
sparse-checkout: |
ci/scripts
ci/build-matrix.json
fetch-depth: 1

- name: Install CI scripts into workspace
env:
CI_REF: ${{ inputs.ci-ref || github.sha }}
run: |
set -euo pipefail
# Fail with the cause rather than a bare 'cp: cannot stat'.
if [[ ! -d .ci-branch/ci/scripts ]]; then
echo "ERROR: no ci/scripts in the CI checkout of '$CI_REF'." >&2
echo " That ref carries no CI tree. Pass ci-ref pointing at" >&2
echo " the CI branch (main) when calling from elsewhere." >&2
exit 1
fi
mkdir -p ci/scripts
cp .ci-branch/ci/scripts/*.sh ci/scripts/
chmod +x ci/scripts/*.sh
Expand Down
Loading