mirror of
https://github.com/sass/sass.git
synced 2024-09-21 10:37:22 +00:00
Use buf instead of protoc to compile protobufs (#3670)
* Use buf instead of protoc to compile protobufs This is a more consistent way of testing the validation of protobufs. This now avoids relying on protoc which dropped built-in support for generating JS. Fixes #3666 * Create buf.work.yaml and stop generating output to /tmp
This commit is contained in:
parent
27bacf34c4
commit
d81fc80c41
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -72,10 +72,10 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: arduino/setup-protoc@v1
|
- uses: bufbuild/buf-setup-action@v1.26.1
|
||||||
with: { version: "3.x", repo-token: "${{ github.token }}" }
|
with: {github_token: "${{ github.token }}"}
|
||||||
- name: Generate protobuf code
|
- name: Generate protobuf code
|
||||||
run: protoc --js_out=/tmp spec/embedded_sass.proto
|
run: buf generate
|
||||||
|
|
||||||
embedded_protocol_versions:
|
embedded_protocol_versions:
|
||||||
name: "Validate Embedded Protocol versions"
|
name: "Validate Embedded Protocol versions"
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -96,3 +96,4 @@ typings/
|
|||||||
# End of https://www.gitignore.io/api/node
|
# End of https://www.gitignore.io/api/node
|
||||||
|
|
||||||
/docs
|
/docs
|
||||||
|
/gen
|
||||||
|
4
buf.gen.yaml
Normal file
4
buf.gen.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version: v1
|
||||||
|
plugins:
|
||||||
|
- plugin: buf.build/bufbuild/es
|
||||||
|
out: gen
|
2
buf.work.yaml
Normal file
2
buf.work.yaml
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
version: v1
|
||||||
|
directories: [spec]
|
Loading…
Reference in New Issue
Block a user