forked from substrait-io/substrait
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move to buf and address buf lints; add ci checks with buf (substrait-…
…io#103) * Move to buf and address buf lints; add ci checks with buf * Fix buf-setup action version * Add csharp gen * Add protoc setup in CI * Add buf.lock and ignore its value in PR diffs * Move directory under proto and add buf workspace config * Fix site protobuf path * Fix clang-format protobuf path * Move buf.yaml because now we have workspaces * Move buf module lock to the right place * Update gitattributes to reflect buf.lock move
- Loading branch information
Showing
18 changed files
with
136 additions
and
115 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
proto/buf.lock linguist-generated=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,24 +25,17 @@ jobs: | |
- uses: jidicula/[email protected] | ||
with: | ||
clang-format-version: '13' | ||
check-path: binary | ||
check-path: proto/subsrait | ||
proto: | ||
name: Check Protobuf | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Protoc | ||
uses: arduino/setup-protoc@v1 | ||
- uses: arduino/setup-protoc@v1 | ||
- uses: bufbuild/[email protected] | ||
- uses: bufbuild/buf-lint-action@v1 | ||
- name: Compile protobuf | ||
run: | | ||
set -e | ||
for i in $(ls); | ||
do | ||
protoc --proto_path=. --java_out . $i | ||
done | ||
set +e | ||
working-directory: ./binary | ||
run: buf generate | ||
yamllint: | ||
name: Lint YAML extensions | ||
runs-on: ubuntu-latest | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,4 @@ | |
**/.gradle | ||
**/.idea | ||
**/build | ||
|
||
gen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
version: v1 | ||
plugins: | ||
- name: cpp | ||
out: gen/proto/cpp | ||
- name: csharp | ||
out: gen/proto/csharp | ||
- name: java | ||
out: gen/proto/java | ||
- name: python | ||
out: gen/proto/python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
version: v1 | ||
directories: | ||
- proto |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
version: v1 | ||
name: buf.build/substrait-io/substrait | ||
lint: | ||
use: | ||
- DEFAULT | ||
ignore_only: | ||
PACKAGE_VERSION_SUFFIX: | ||
- substrait | ||
breaking: | ||
use: | ||
- FILE |
4 changes: 2 additions & 2 deletions
4
binary/capabilities.proto → proto/substrait/capabilities.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
binary/extensions.proto → proto/substrait/extensions/extensions.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
binary/parameterized_types.proto → proto/substrait/parameterized_types.proto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.