Skip to content

Commit 8eb0498

Browse files
authored
Update build-action.yml
1 parent 522787e commit 8eb0498

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

.github/workflows/build-action.yml

+2-16
Original file line numberDiff line numberDiff line change
@@ -117,24 +117,10 @@ jobs:
117117
strategy:
118118
fail-fast: false
119119
matrix:
120-
chunk: [
120+
#chunk: [
121121
#1,2,3,4,5,6,7,8,9,10,11,12,
122-
13
122+
#13
123123
#,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32
124-
125-
126-
127-
You can simplify the matrix by using a range function in the workflow definition. While GitHub Actions doesn't natively support ranges in YAML, you can generate a matrix dynamically through bash scripting or use a simpler YAML structure. Here's an example using a shell command to create a sequence of numbers (from 1 to 32) and pass it as matrix jobs:
128-
129-
name: Matrix with Range
130-
131-
on: [push, pull_request]
132-
133-
jobs:
134-
test:
135-
runs-on: ubuntu-latest
136-
strategy:
137-
matrix:
138124
#chunk: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32]
139125
chunk: ${{ fromJSON('[' + range(1, 33).join(',') + ']') }}
140126
perf: [

0 commit comments

Comments
 (0)