Skip to content

Commit

Permalink
Go build fails.Disable it
Browse files Browse the repository at this point in the history
  • Loading branch information
woksin committed Jan 31, 2023
1 parent d6368c3 commit 8429c67
Showing 1 changed file with 67 additions and 67 deletions.
134 changes: 67 additions & 67 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,33 +100,33 @@ jobs:
working-directory: ./Generation/JavaScript.Web
run: yarn build

golang-build:
name: Go Build
runs-on: ubuntu-latest
needs: context
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.16.2"
- uses: arduino/setup-protoc@v1
with:
version: "3.18.1"
- run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
- name: Update VersionInfo
uses: dolittle/update-version-info-action@v1
with:
version: ${{ needs.context.outputs.versioninfo-version }}
files-to-update: |
Generation/Go/template/VersionInfo.go
- name: Generate code
working-directory: ./Generation/Go
run: ./generate.sh ${{ needs.context.outputs.version }}
# golang-build:
# name: Go Build
# runs-on: ubuntu-latest
# needs: context
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: "1.16.2"
# - uses: arduino/setup-protoc@v1
# with:
# version: "3.18.1"
# - run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
# - name: Update VersionInfo
# uses: dolittle/update-version-info-action@v1
# with:
# version: ${{ needs.context.outputs.versioninfo-version }}
# files-to-update: |
# Generation/Go/template/VersionInfo.go
# - name: Generate code
# working-directory: ./Generation/Go
# run: ./generate.sh ${{ needs.context.outputs.version }}

release:
name: Release
runs-on: ubuntu-latest
needs: [context, dot-net-build, java-script-build, java-script-web-build, golang-build]
needs: [context, dot-net-build, java-script-build, java-script-web-build]
if: ${{ needs.context.outputs.should-publish == 'true' }}
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -247,47 +247,47 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

golang-release:
name: Go Release
runs-on: ubuntu-latest
needs: [context, release]
if: ${{ needs.context.outputs.should-publish == 'true' }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: "1.16.2"
- uses: arduino/setup-protoc@v1
with:
version: "3.18.1"
- run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
- name: Update VersionInfo
uses: dolittle/update-version-info-action@v1
with:
version: ${{ needs.context.outputs.versioninfo-version }}
files-to-update: |
Generation/Go/template/VersionInfo.go
- name: Generate code
working-directory: ./Generation/Go
run: ./generate.sh ${{ needs.context.outputs.version }}
- uses: actions/checkout@v2
with:
repository: dolittle/Go.Contracts
token: ${{ secrets.BUILD_PAT }}
path: ./Generation/Go/output
- name: Cleanout old released code
working-directory: ./Generation/Go/output
run: rm -r * && git checkout -- README.md LICENSE
- name: Copy new generated code
working-directory: ./Generation/Go/
run: cp -r generated/* output
- name: Commit new generated code and tag as release
working-directory: ./Generation/Go/output
run: |
git config user.name "Contracts Release GitHub Actions"
git config user.email "contracts-release@dolittle.com"
git add .
git commit --allow-empty -m "Generated code for ${{ needs.context.outputs.version }}"
git tag "v${{ needs.context.outputs.version }}"
git push
git push --tags
# golang-release:
# name: Go Release
# runs-on: ubuntu-latest
# needs: [context, release]
# if: ${{ needs.context.outputs.should-publish == 'true' }}
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-go@v2
# with:
# go-version: "1.16.2"
# - uses: arduino/setup-protoc@v1
# with:
# version: "3.18.1"
# - run: go get google.golang.org/protobuf/cmd/protoc-gen-go google.golang.org/grpc/cmd/protoc-gen-go-grpc
# - name: Update VersionInfo
# uses: dolittle/update-version-info-action@v1
# with:
# version: ${{ needs.context.outputs.versioninfo-version }}
# files-to-update: |
# Generation/Go/template/VersionInfo.go
# - name: Generate code
# working-directory: ./Generation/Go
# run: ./generate.sh ${{ needs.context.outputs.version }}
# - uses: actions/checkout@v2
# with:
# repository: dolittle/Go.Contracts
# token: ${{ secrets.BUILD_PAT }}
# path: ./Generation/Go/output
# - name: Cleanout old released code
# working-directory: ./Generation/Go/output
# run: rm -r * && git checkout -- README.md LICENSE
# - name: Copy new generated code
# working-directory: ./Generation/Go/
# run: cp -r generated/* output
# - name: Commit new generated code and tag as release
# working-directory: ./Generation/Go/output
# run: |
# git config user.name "Contracts Release GitHub Actions"
# git config user.email "contracts-release@dolittle.com"
# git add .
# git commit --allow-empty -m "Generated code for ${{ needs.context.outputs.version }}"
# git tag "v${{ needs.context.outputs.version }}"
# git push
# git push --tags

0 comments on commit 8429c67

Please sign in to comment.