File tree Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Expand file tree Collapse file tree 1 file changed +27
-6
lines changed Original file line number Diff line number Diff line change 1313 - " v*"
1414
1515jobs :
16- build :
16+ build-linux :
17+ runs-on : ubuntu-latest
18+ container : google/dart:stable
19+ steps :
20+ - name : Checkout code
21+ uses : actions/checkout@v4
22+
23+ - name : Create archive
24+ run : |
25+ bash ./scripts/build_release.sh
26+ shell : bash
27+
28+ - name : Upload artifact
29+ uses : actions/upload-artifact@v4
30+ with :
31+ name : release-archive-ubuntu-latest
32+ path : ${{ env.ARCHIVE_NAME }}
33+
34+ build-non-linux :
1735 strategy :
1836 matrix :
19- os : [ubuntu-latest, macos-latest, windows-latest]
37+ os : [macos-latest, windows-latest]
2038 runs-on : ${{ matrix.os }}
2139 steps :
2240 - name : Checkout code
2341 uses : actions/checkout@v4
2442
25- - name : Create archive (Linux/macOS)
26- if : runner.os != 'Windows'
43+ - name : Setup Dart
44+ uses : dart-lang/setup-dart@v1
45+
46+ - name : Create archive (macOS)
47+ if : matrix.os == 'macos-latest'
2748 run : |
2849 bash ./scripts/build_release.sh
2950 shell : bash
3051
3152 - name : Create archive (Windows)
32- if : runner .os == 'Windows '
53+ if : matrix .os == 'windows-latest '
3354 run : |
3455 ./scripts/build_release.ps1
3556 shell : pwsh
4162 path : ${{ env.ARCHIVE_NAME }}
4263
4364 release :
44- needs : build
65+ needs : [ build-linux, build-non-linux]
4566 runs-on : ubuntu-latest
4667 permissions :
4768 contents : write
You can’t perform that action at this time.
0 commit comments