-
Notifications
You must be signed in to change notification settings - Fork 546
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 #1679 from goplus/main
v1.2.0-pre.2
- Loading branch information
Showing
83 changed files
with
3,402 additions
and
721 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
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 |
---|---|---|
|
@@ -10,6 +10,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Snapcraft | ||
uses: samuelmeuli/action-snapcraft@v2 | ||
|
||
- name: Checkout tag | ||
run: | | ||
|
@@ -35,12 +40,23 @@ jobs: | |
with: | ||
go-version: "1.21" | ||
|
||
- name: Install goreleaser | ||
run: | | ||
go install github.com/goreleaser/goreleaser@latest | ||
- name: Release | ||
- name: Release with goreleaser | ||
uses: goreleaser/goreleaser-action@v5 | ||
with: | ||
# either 'goreleaser' (default) or 'goreleaser-pro' | ||
distribution: goreleaser | ||
version: latest | ||
args: release --clean -p 4 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
WINGET_PKGS_PRIVATE_KEY: ${{ secrets.WINGET_PKGS_PRIVATE_KEY }} | ||
run: goreleaser release -p 4 | ||
|
||
- name: Upload deb/rpm to Fury.io | ||
run: | | ||
for file in dist/*.{deb,rpm} | ||
do | ||
echo "Uploading $file to Fury.io" | ||
curl -sS -F package=@$file https://[email protected]/goplus/ | ||
done | ||
env: | ||
FURY_TOKEN: ${{ secrets.FURY_TOKEN }} |
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 |
---|---|---|
|
@@ -68,12 +68,25 @@ changelog: | |
- "^test:" | ||
|
||
winget: | ||
- name: gop | ||
- name: goplus | ||
homepage: "https://goplus.org/" | ||
publisher: goplus | ||
publisher_url: https://github.com/goplus/gop | ||
publisher_support_url: "https://github.com/goplus/gop/issues/new" | ||
package_identifier: goplus.gop | ||
path: "manifests/g/goplus/gop/{{.Version}}" | ||
tags: | ||
- golang | ||
- go | ||
- gop | ||
- goplus | ||
- programming | ||
- language | ||
- compiler | ||
- interpreter | ||
- data science | ||
- engineering | ||
- education | ||
short_description: The Go+ Programming Language | ||
description: | | ||
The Go+ programming language is designed for engineering, STEM education, and data science. | ||
|
@@ -101,3 +114,148 @@ winget: | |
owner: microsoft | ||
name: winget-pkgs | ||
branch: master | ||
|
||
nfpms: | ||
- package_name: gop | ||
vendor: goplus | ||
homepage: https://goplus.org/ | ||
maintainer: Li Jie <[email protected]> | ||
license: Apache-2.0 | ||
description: | | ||
The Go+ programming language is designed for engineering, STEM education, and data science. | ||
- For engineering: working in the simplest language that can be mastered by children. | ||
- For STEM education: studying an engineering language that can be used for work in the future. | ||
- For data science: communicating with engineers in the same language. | ||
formats: | ||
- "deb" | ||
- "rpm" | ||
overrides: | ||
deb: | ||
dependencies: | ||
- "golang-go (>= 1.18.0)" | ||
rpm: | ||
dependencies: | ||
- "golang-bin >= 1.18.0" | ||
file_name_template: >- | ||
{{ .ProjectName }}_v{{.Version}}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
bindir: /usr/lib/{{ .ProjectName }} | ||
contents: | ||
# source folder | ||
- src: LICENSE | ||
dst: /usr/lib/{{ .ProjectName }}/LICENSE | ||
- src: "README.md" | ||
dst: /usr/lib/{{ .ProjectName }}/README.md | ||
- src: "go.mod" | ||
dst: /usr/lib/{{ .ProjectName }}/go.mod | ||
- src: "go.sum" | ||
dst: /usr/lib/{{ .ProjectName }}/go.sum | ||
- src: "*.go" | ||
dst: /usr/lib/{{ .ProjectName }}/ | ||
- src: ast | ||
dst: /usr/lib/{{ .ProjectName }}/ast | ||
- src: builtin | ||
dst: /usr/lib/{{ .ProjectName }}/builtin | ||
- src: cl | ||
dst: /usr/lib/{{ .ProjectName }}/cl | ||
- src: cmd | ||
dst: /usr/lib/{{ .ProjectName }}/cmd | ||
- src: doc | ||
dst: /usr/lib/{{ .ProjectName }}/doc | ||
- src: env | ||
dst: /usr/lib/{{ .ProjectName }}/env | ||
- src: format | ||
dst: /usr/lib/{{ .ProjectName }}/format | ||
- src: parser | ||
dst: /usr/lib/{{ .ProjectName }}/parser | ||
- src: printer | ||
dst: /usr/lib/{{ .ProjectName }}/parser | ||
- src: scanner | ||
dst: /usr/lib/{{ .ProjectName }}/scanner | ||
- src: token | ||
dst: /usr/lib/{{ .ProjectName }}/token | ||
- src: watcher | ||
dst: /usr/lib/{{ .ProjectName }}/watcher | ||
- src: "x" | ||
dst: /usr/lib/{{ .ProjectName }}/x | ||
# symlinks to binaries | ||
- src: "/usr/lib/{{ .ProjectName }}/bin/gop" | ||
dst: /usr/bin/gop | ||
type: symlink | ||
- src: "/usr/lib/{{ .ProjectName }}/bin/gopfmt" | ||
dst: /usr/bin/gopfmt | ||
type: symlink | ||
|
||
snapcrafts: | ||
- id: gop | ||
name: gop | ||
title: The Go+ Programming Language | ||
summary: The Go+ Programming Language | ||
description: | | ||
The Go+ programming language is designed for engineering, STEM education, and data science. | ||
- For engineering: working in the simplest language that can be mastered by children. | ||
- For STEM education: studying an engineering language that can be used for work in the future. | ||
- For data science: communicating with engineers in the same language. | ||
confinement: classic | ||
license: Apache-2.0 | ||
name_template: >- | ||
{{ .ProjectName }}_v{{.Version}}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
extra_files: | ||
# source folder | ||
- source: LICENSE | ||
destination: LICENSE | ||
- source: "README.md" | ||
destination: README.md | ||
- source: "go.mod" | ||
destination: go.mod | ||
- source: "go.sum" | ||
destination: go.sum | ||
- source: ast | ||
destination: ast | ||
- source: builtin | ||
destination: builtin | ||
- source: cl | ||
destination: cl | ||
- source: cmd | ||
destination: cmd | ||
- source: doc | ||
destination: doc | ||
- source: env | ||
destination: env | ||
- source: format | ||
destination: format | ||
- source: parser | ||
destination: parser | ||
- source: printer | ||
destination: parser | ||
- source: scanner | ||
destination: scanner | ||
- source: token | ||
destination: token | ||
- source: watcher | ||
destination: watcher | ||
- source: "x" | ||
destination: x | ||
apps: | ||
gop: | ||
command: "gop" | ||
aliases: ["gop"] | ||
environment: | ||
GOPROOT: "$SNAP" | ||
gopfmt: | ||
command: "gopfmt" | ||
aliases: ["gopfmt"] | ||
environment: | ||
GOPROOT: "$SNAP" | ||
|
||
checksum: | ||
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
|
||
set -ex | ||
|
||
go run cmd/make.go --install --autoproxy | ||
go run cmd/make.go --install --regtest --autoproxy |
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 |
---|---|---|
@@ -1 +1 @@ | ||
go run cmd/make.go --install --autoproxy | ||
go run cmd/make.go --install --regtest --autoproxy |
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.