Skip to content

Commit

Permalink
feat: Use --ebc on all generation runs (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
kfcampbell authored Jan 19, 2024
1 parent 9f82617 commit 07fbcad
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-csharp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: go run schemas/main.go --schema-next=false

- name: Run generation
run: time kiota generate -l csharp --ll trace -o $(pwd)/../dotnet-sdk/src/GitHub -c GitHubClient -n GitHub -d schemas/downloaded.json
run: kiota generate -l csharp --ll trace -o $(pwd)/../dotnet-sdk/src/GitHub -c GitHubClient -n GitHub -d schemas/downloaded.json --ebc

- name: Build post-processing
run: go build -o post-processors/csharp/post-processor post-processors/csharp/main.go
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
run: go run schemas/main.go --schema-next=false

- name: Run generation
run: kiota generate -l go --ll trace -o $(pwd)/../go-sdk/pkg/github -n "github.com/octokit/go-sdk/pkg/github/" -d schemas/downloaded.json
run: kiota generate -l go --ll trace -o $(pwd)/../go-sdk/pkg/github -n "github.com/octokit/go-sdk/pkg/github/" -d schemas/downloaded.json --ebc

- name: Build post-processing
run: go build -o post-processors/go/post-processor post-processors/go/main.go
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-csharp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
go run schemas/main.go --schema-next=false

# Execute generation
kiota generate -l csharp --ll trace -o generated/csharp/src/GitHub -c GitHubClient -n GitHub -d schemas/downloaded.json --co
kiota generate -l csharp --ll trace -o generated/csharp/src/GitHub -c GitHubClient -n GitHub -d schemas/downloaded.json --co --ebc

# Build and run post-processor
go build -o $(pwd)/post-processors/csharp/post-processor post-processors/csharp/main.go
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate-go.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
set -ex

go run schemas/main.go --schema-next=false
kiota generate -l go --ll trace -o $(pwd)/../go-sdk/pkg/github -n github.com/octokit/go-sdk/pkg/github -d schemas/downloaded.json
kiota generate -l go --ll trace -o $(pwd)/../go-sdk/pkg/github -n github.com/octokit/go-sdk/pkg/github -d schemas/downloaded.json --ebc
go build -o post-processors/go/post-processor post-processors/go/main.go
cd $(pwd)/../go-sdk
$(pwd)/../source-generator/post-processors/go/post-processor $(pwd)
Expand Down

0 comments on commit 07fbcad

Please sign in to comment.