Skip to content

Commit f280247

Browse files
Use a matrix create parallel builds for each os
Using a matrix to run each build task greatly improves performance, since they can all start concurrently. The finishing time of the job will be equal to the one of the longer task to build, instead of being the sum of each individual task's finishing time.
1 parent 87d2efa commit f280247

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/release-go-task.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,19 @@ jobs:
1919
create-release-artifacts:
2020
runs-on: ubuntu-latest
2121

22+
strategy:
23+
matrix:
24+
os:
25+
- Windows_32bit
26+
- Windows_64bit
27+
- Linux_32bit
28+
- Linux_64bit
29+
- Linux_ARMv6
30+
- Linux_ARMv7
31+
- Linux_ARM64
32+
- macOS_64bit
33+
- macOS_ARM64
34+
2235
steps:
2336
- name: Checkout repository
2437
uses: actions/checkout@v3
@@ -40,7 +53,7 @@ jobs:
4053
version: 3.x
4154

4255
- name: Build
43-
run: task dist:all
56+
run: task dist:${{ matrix.os }}
4457

4558
- name: Upload artifacts
4659
uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)