File tree Expand file tree Collapse file tree 5 files changed +14
-13
lines changed Expand file tree Collapse file tree 5 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 26
26
-
uses :
bufbuild/[email protected]
27
27
with : {github_token: "${{ inputs.github-token }}"}
28
28
29
- - name : Check out embedded Sass protocol
29
+ - name : Check out the language repo
30
30
uses : sass/clone-linked-repo@v1
31
- with : {repo: sass/embedded-protocol , path: build/embedded-protocol }
31
+ with : {repo: sass/sass , path: build/language }
32
32
33
33
- name : Generate Dart from protobuf
34
34
run : dart run grinder protobuf
Original file line number Diff line number Diff line change @@ -162,15 +162,14 @@ jobs:
162
162
uses : sass/clone-linked-repo@v1
163
163
with : {repo: sass/embedded-host-node}
164
164
165
- - name : Check out the JS API definition
165
+ - name : Check out the language repo
166
166
uses : sass/clone-linked-repo@v1
167
- with : {repo: sass/sass, path: language}
167
+ with : {repo: sass/sass, path: build/ language}
168
168
169
169
- name : Initialize embedded host
170
170
run : |
171
171
npm install
172
- npm run init -- --protocol-path=../build/embedded-protocol \
173
- --compiler-path=.. --api-path=../language
172
+ npm run init -- --compiler-path=.. --language-path=../build/language
174
173
npm run compile
175
174
mv {`pwd`/,dist/}lib/src/vendor/dart-sass
176
175
working-directory : embedded-host-node
@@ -185,7 +184,7 @@ jobs:
185
184
fi
186
185
187
186
- name : Run tests
188
- run : npm run js-api-spec -- --sassPackage ../embedded-host-node --sassSassRepo ../language
187
+ run : npm run js-api-spec -- --sassPackage ../embedded-host-node --sassSassRepo ../build/ language
189
188
working-directory : sass-spec
190
189
191
190
dart_tests :
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ Dart Sass includes an implementation of the compiler side of the [Embedded Sass
316
316
protocol] . It's designed to be embedded in a host language, which then exposes
317
317
an API for users to invoke Sass and define custom functions and importers.
318
318
319
- [ Embedded Sass protocol ] : https://github.com/sass/sass-embedded-protocol /blob/master/README .md#readme
319
+ [ Embedded Sass protocol ] : https://github.com/sass/sass/blob/main/spec/embedded-protocol .md
320
320
321
321
### Usage
322
322
Original file line number Diff line number Diff line change 1
1
version : v1
2
- directories : [build/embedded-protocol ]
2
+ directories : [build/language/spec ]
Original file line number Diff line number Diff line change @@ -58,15 +58,16 @@ void main(List<String> args) {
58
58
"${pkg .githubReleaseNotes .defaultValue }" ;
59
59
60
60
pkg.environmentConstants.fn = () {
61
- if (! Directory ('build/embedded-protocol ' ).existsSync ()) {
61
+ if (! Directory ('build/language ' ).existsSync ()) {
62
62
fail ('Run `dart run grinder protobuf` before building Dart Sass '
63
63
'executables.' );
64
64
}
65
65
66
66
return {
67
67
...pkg.environmentConstants.defaultValue,
68
- "protocol-version" :
69
- File ('build/embedded-protocol/VERSION' ).readAsStringSync ().trim (),
68
+ "protocol-version" : File ('build/language/spec/EMBEDDED_PROTOCOL_VERSION' )
69
+ .readAsStringSync ()
70
+ .trim (),
70
71
"compiler-version" : pkg.pubspec.version! .toString (),
71
72
};
72
73
};
@@ -202,7 +203,8 @@ dart run protoc_plugin "\$@"
202
203
}
203
204
204
205
if (Platform .environment['UPDATE_SASS_PROTOCOL' ] != 'false' ) {
205
- cloneOrCheckout ("https://github.com/sass/embedded-protocol.git" , "main" );
206
+ cloneOrCheckout ("https://github.com/sass/sass.git" , "main" ,
207
+ name: 'language' );
206
208
}
207
209
208
210
await runAsync ("buf" ,
You can’t perform that action at this time.
0 commit comments