@@ -17,20 +17,48 @@ 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 : pwsh
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 pwsh 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 : pwsh
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 : pwsh
43
+
26
44
-
uses :
bufbuild/[email protected]
27
45
with : {github_token: "${{ inputs.github-token }}"}
28
46
29
47
- name : Check out the language repo
48
+ if : github.event_name == 'pull_request'
30
49
uses : sass/clone-linked-repo@v1
31
50
with : {repo: sass/sass, path: build/language}
32
51
33
52
- name : Generate Dart from protobuf
53
+ if : runner.os != 'Windows'
34
54
run : dart run grinder protobuf
35
- env : {UPDATE_SASS_SASS_REPO: false}
55
+ env :
56
+ UPDATE_SASS_SASS_REPO : ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
36
57
shell : bash
58
+
59
+ - name : Generate Dart from protobuf
60
+ if : runner.os == 'Windows'
61
+ run : dart run grinder protobuf
62
+ env :
63
+ UPDATE_SASS_SASS_REPO : ${{ github.event_name == 'pull_request' && 'false' || 'true' }}
64
+ shell : pwsh
0 commit comments