-
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.
Merge pull request #34 from origadmin/dev
Merge dev into main
- Loading branch information
Showing
56 changed files
with
5,472 additions
and
107 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 |
---|---|---|
|
@@ -91,7 +91,7 @@ jobs: | |
# draft: false | ||
# prerelease: false | ||
|
||
release: | ||
release-gins: | ||
needs: [ tagging ] | ||
if: success() | ||
runs-on: ubuntu-latest | ||
|
@@ -122,6 +122,37 @@ jobs: | |
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
release-gingrpc: | ||
needs: [ tagging ] | ||
if: success() | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/[email protected] # v5 | ||
with: | ||
go-version: stable | ||
- name: Ensure Go | ||
run: go version | ||
- name: Checkout code | ||
uses: actions/[email protected] # v4 | ||
with: | ||
ref: main | ||
fetch-depth: 0 # Fetch all history | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/goreleaser-action@v6 | ||
if: success() | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro' | ||
distribution: goreleaser | ||
version: '~> v2' | ||
args: release --clean -f ./cmd/protoc-gen-go-ginrpc/.goreleaser.yaml | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Upload assets | ||
# uses: actions/[email protected] | ||
# with: | ||
|
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,17 @@ | ||
version: v2 | ||
|
||
managed: | ||
enabled: true | ||
# override: | ||
# - file_option: go_package_prefix | ||
# value: github.com/origadmin/toolkits/runtime | ||
#inputs: | ||
# - directory: api/v1/proto/helloworld | ||
# disable: | ||
# - file_option: go_package_prefix | ||
# module: buf.build/bufbuild/protovalidate | ||
|
||
plugins: | ||
- local: protoc-gen-go | ||
out: ./gen/go | ||
opt: paths=source_relative |
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,21 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v2 | ||
deps: | ||
- name: buf.build/bufbuild/protovalidate | ||
commit: 5a7b106cbb87462d9a8c9ffecdbd2e38 | ||
digest: b5:0f2dc6c9453e9cc9e9f36807aaa5f94022e837d91fef4dcaeed79a35c0843cc64eba28ff077aab24da3b2cb12639ad256246f9f9a36c033b99d5754b19996b7e | ||
- name: buf.build/gnostic/gnostic | ||
commit: 087bc8072ce44e339f213209e4d57bf0 | ||
digest: b5:c4eebcd04bc2fdd5dd0b8d695eb419682a650b600cdb56ff2ed61208a24603e0eb1b8ae0d467925c69a24bde6d322f3c4112bd2b8efdd682d8c3128384cdac9a | ||
- name: buf.build/googleapis/googleapis | ||
commit: c0913f24652a4cfc95f77d97443a5005 | ||
digest: b5:4edb1480036c60f7867d75417d7faa87c851c96a4988a9746058a24e8e9bb4978daed0af35d57f6043de5a60355978dceaaa93dc992be99193260ac8823cbb8f | ||
- name: buf.build/kratos/apis | ||
commit: c2de25f14fa445a79a054214f31d17a8 | ||
digest: b5:3e4dac0d26ce9db17309aeb845f0efb38ec7db1af06ee3c6b8dce2f4f7f53f126d62233c4910410384ead7f0a0edb6448cb389e62d1e3da5e927c3a980828f0b | ||
- name: buf.build/origadmin/entgen | ||
commit: 8e7443ac7f36447e8ec2e48830b1c91f | ||
digest: b5:90a5f674d509786b01a7880b3cee5575b34ba1e0838f6ef197bbc4cd02afc7c261fb8374b5ef988ad5e100b5d54e2689652c9419286f1eb98c1f3ae737916def | ||
- name: buf.build/origadmin/rpcerr | ||
commit: 228fe06a8c0946f4859269ae377c4740 | ||
digest: b5:789548a00fe16ba92bfb0ef1570b77af7124bac11bcc4542bff70b0d9416f4e7940dc5e0924fec9f925d3136c4fb41ce1d5675743255c9ac99f5178ebf95b96f |
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,24 @@ | ||
# For details on buf.yaml configuration, visit https://buf.build/docs/configuration/v2/buf-yaml | ||
version: v2 | ||
|
||
modules: | ||
- path: net/proto | ||
|
||
lint: | ||
use: | ||
- STANDARD | ||
except: | ||
- ENUM_PASCAL_CASE | ||
- PACKAGE_VERSION_SUFFIX | ||
- PACKAGE_DIRECTORY_MATCH | ||
service_suffix: API | ||
breaking: | ||
use: | ||
- FILE | ||
deps: | ||
- buf.build/kratos/apis | ||
- buf.build/googleapis/googleapis | ||
- buf.build/bufbuild/protovalidate | ||
- buf.build/origadmin/rpcerr | ||
- buf.build/origadmin/entgen | ||
- buf.build/gnostic/gnostic |
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,116 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
|
||
# The lines below are called `modelines`. See `:help modeline` | ||
# Feel free to remove those if you don't want/need to use them. | ||
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json | ||
# vim: set ts=2 sw=2 tw=0 fo=cnqoj | ||
|
||
version: 2 | ||
|
||
project_name: protoc-gen-go-ginrpc | ||
|
||
before: | ||
hooks: | ||
# You may remove this if you don't use go modules. | ||
- go mod tidy | ||
# you may remove this if you don't need go generate | ||
# - go generate ./... | ||
# - golangci-lint run ./... | ||
|
||
builds: | ||
- env: | ||
- CGO_ENABLED=0 | ||
flags: | ||
- -trimpath | ||
ldflags: -s -w -X main.version={{.Version}} | ||
dir: ./cmd/protoc-gen-go-ginrpc | ||
binary: protoc-gen-go-ginrpc | ||
# main: ./main.go | ||
goos: | ||
- darwin | ||
- windows | ||
- linux | ||
- freebsd | ||
# - netbsd | ||
# - illumos | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
- arm | ||
- "386" | ||
# - ppc64 | ||
# - ppc64le | ||
# - s390x | ||
# - mips64 | ||
# - mips64le | ||
# - riscv64 | ||
# - loong64 | ||
goarm: | ||
# - "6" | ||
- "7" | ||
gomips: | ||
- hardfloat | ||
ignore: | ||
- goos: darwin | ||
goarch: "386" | ||
- goos: freebsd | ||
goarch: arm64 | ||
- goos: freebsd | ||
goarch: "386" | ||
- goos: freebsd | ||
goarch: amd64 | ||
- goos: windows | ||
goarch: arm | ||
- goos: windows | ||
goarch: "386" | ||
archives: | ||
- format: tar.gz | ||
wrap_in_directory: true | ||
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }}{{ if .Arm }}v{{ .Arm }}{{ end }}' | ||
files: | ||
#- LICENSE | ||
#- README.md | ||
# use zip for windows archives | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
snapshot: | ||
version_template: nightly_{{ .ShortCommit }} | ||
|
||
checksum: | ||
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt' | ||
|
||
changelog: | ||
sort: asc | ||
filters: | ||
exclude: | ||
- '(?i)^docs?:' | ||
- '(?i)^docs\([^:]+\):' | ||
- '(?i)^docs\[[^:]+\]:' | ||
- '^tests?:' | ||
- '(?i)^dev:' | ||
- '(?i)^chore:' | ||
- '^build\(deps\): bump .* in /docs \(#\d+\)' | ||
- '^build\(deps\): bump .* in /\.github/peril \(#\d+\)' | ||
- '^build\(deps\): bump .* in /scripts/gen_github_action_config \(#\d+\)' | ||
- "merge conflict" | ||
- Merge remote-tracking branch | ||
- Merge pull request | ||
- Merge branch | ||
|
||
release: | ||
github: | ||
owner: OrigAdmin | ||
name: toolkits | ||
prerelease: auto | ||
draft: false | ||
make_latest: true | ||
|
||
header: | | ||
# Changelog | ||
## [{{ .Tag }}](https://github.com/OrigAdmin/toolkits/compare/{{ .PreviousTag }}...{{ .Tag }}) ({{ .Date }}) |
Oops, something went wrong.