Skip to content

Commit 82da8cd

Browse files
committed
Revert "Limit manual test runs to a few versions"
This reverts commit 8753e38.
1 parent c25b3c2 commit 82da8cd

File tree

1 file changed

+2
-44
lines changed

1 file changed

+2
-44
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ on:
1717
required: false
1818
default: ""
1919
type: string
20-
max_versions:
21-
description: Maximum number of version tags to build for this manual run
22-
required: false
23-
default: "1"
24-
type: string
2520

2621
env:
2722
IMAGE_NAME: ${{ inputs.image_name || vars.IMAGE_NAME || 'nikolaik/python-nodejs' }}
@@ -36,8 +31,8 @@ jobs:
3631
runs-on: ubuntu-latest
3732
needs: [test]
3833
outputs:
39-
version_matrix: ${{ steps.filter-matrix.outputs.version_matrix }}
40-
arch_matrix: ${{ steps.filter-matrix.outputs.arch_matrix }}
34+
version_matrix: ${{ steps.set-matrix.outputs.matrix }}
35+
arch_matrix: ${{ steps.set-matrix.outputs.arch_matrix }}
4136
steps:
4237
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
4338
with:
@@ -50,43 +45,6 @@ jobs:
5045
run: |
5146
FORCE=$(if [[ "${{ github.event_name }}" == "workflow_dispatch" && "${{ inputs.force }}" == "true" ]]; then echo "--force"; elif git log --pretty=format:"%s" HEAD^..HEAD | grep -q '\[force\]'; then echo "--force"; else echo ""; fi)
5247
uv run dpn $FORCE build-matrix --event ${{ github.event_name }}
53-
- name: Filter build matrix for manual runs
54-
id: filter-matrix
55-
run: |
56-
version_matrix='${{ steps.set-matrix.outputs.matrix }}'
57-
arch_matrix='${{ steps.set-matrix.outputs.arch_matrix }}'
58-
max_versions='${{ github.event_name == 'workflow_dispatch' && inputs.max_versions || '0' }}'
59-
60-
if [[ -z "${version_matrix}" ]]; then
61-
echo "version_matrix=" >> "$GITHUB_OUTPUT"
62-
echo "arch_matrix=" >> "$GITHUB_OUTPUT"
63-
exit 0
64-
fi
65-
66-
filtered_version_matrix="$(jq -cn \
67-
--argjson matrix "${version_matrix}" \
68-
--arg max_versions "${max_versions}" '
69-
($matrix.include
70-
| if ($max_versions | tonumber) > 0 then .[:($max_versions | tonumber)] else . end
71-
) as $include
72-
| if ($include | length) == 0 then empty else {include: $include} end
73-
')"
74-
75-
if [[ -z "${filtered_version_matrix}" ]]; then
76-
echo "version_matrix=" >> "$GITHUB_OUTPUT"
77-
echo "arch_matrix=" >> "$GITHUB_OUTPUT"
78-
exit 0
79-
fi
80-
81-
filtered_arch_matrix="$(jq -cn \
82-
--argjson matrix "${arch_matrix}" \
83-
--argjson selected "${filtered_version_matrix}" '
84-
($selected.include | map(.key)) as $keys
85-
| {include: ($matrix.include | map(select(.key as $key | $keys | index($key))))}
86-
')"
87-
88-
echo "version_matrix=${filtered_version_matrix}" >> "$GITHUB_OUTPUT"
89-
echo "arch_matrix=${filtered_arch_matrix}" >> "$GITHUB_OUTPUT"
9048
9149
9250
build-arch:

0 commit comments

Comments
 (0)