Skip to content

Commit 68755bc

Browse files
authored
Fix the release process to include the dart executable (#62)
1 parent 1484f81 commit 68755bc

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,44 @@ on:
1313
- "v*"
1414

1515
jobs:
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
@@ -41,7 +62,7 @@ jobs:
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

0 commit comments

Comments
 (0)