@@ -17,20 +17,55 @@ runs:
17
17
with :
18
18
node-version : " ${{ inputs.node-version }}"
19
19
20
+ # See: https://github.com/dart-lang/sdk/issues/52266
21
+ - run : Invoke-WebRequest https://pub.dev
22
+ if : runner.os == 'Windows'
23
+ shell : powershell
24
+
25
+ # See: https://github.com/orgs/community/discussions/131594
26
+ # The composite action requires an explict shell, but bash is not available on windows-arm64 runner.
27
+ # For the following commands conditionally use bash or powershell based on the runner.os:
20
28
- run : dart pub get
29
+ if : runner.os != 'Windows'
21
30
shell : bash
22
31
32
+ - run : dart pub get
33
+ if : runner.os == 'Windows'
34
+ shell : powershell
35
+
23
36
- run : npm install
37
+ if : runner.os != 'Windows'
24
38
shell : bash
25
39
40
+ - run : npm install
41
+ if : runner.os == 'Windows'
42
+ shell : powershell
43
+
26
44
-
uses :
bufbuild/[email protected]
27
45
with : {github_token: "${{ inputs.github-token }}"}
28
46
47
+ # This composite action requires bash, but bash is not available on windows-arm64 runner.
48
+ # Avoid running this composite action on non-PR, so that we can release on windows-arm64.
29
49
- name : Check out the language repo
50
+ if : github.event_name == 'pull_request'
30
51
uses : sass/clone-linked-repo@v1
31
52
with : {repo: sass/sass, path: build/language}
32
53
54
+ # Git is not pre-installed on windows-arm64 runner, however actions/checkout support
55
+ # downloading repo via GitHub API.
56
+ - name : Check out the language repo
57
+ if : github.event_name != 'pull_request'
58
+ uses : actions/checkout@v4
59
+ with : {repository: sass/sass, path: build/language}
60
+
33
61
- name : Generate Dart from protobuf
62
+ if : runner.os != 'Windows'
34
63
run : dart run grinder protobuf
35
64
env : {UPDATE_SASS_SASS_REPO: false}
36
65
shell : bash
66
+
67
+ - name : Generate Dart from protobuf
68
+ if : runner.os == 'Windows'
69
+ run : dart run grinder protobuf
70
+ env : {UPDATE_SASS_SASS_REPO: false}
71
+ shell : powershell
0 commit comments