Skip to content

Commit

Permalink
Feat/build system (#809)
Browse files Browse the repository at this point in the history
* fix: add bob workspace

* init: bob workspace

* init: change go mod repo name

* feat: telegram bot notifications

* fix: remove tg bot

* chore: add comments to all proto files

* fix: add memgraph dep

* feat: add protobuf gen scripts

* fix: go mod tidy

* feat: Update taskfile and build configuration, remove cosmwasm

* chore: update proto files

* Update protos

* chore: update proto files

* chore: update proto files

* feat: Add first proto
  • Loading branch information
prnk28 authored Oct 24, 2023
1 parent 44ea3f1 commit f6430df
Show file tree
Hide file tree
Showing 227 changed files with 5,223 additions and 2,416 deletions.
5 changes: 4 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
"features": {
"ghcr.io/akhildevelops/devcontainer-features/apt:0": {},
"ghcr.io/withfig/features/fig:1": {},
"ghcr.io/devcontainers/features/go:1": {}
"ghcr.io/devcontainers/features/go:1": {},
"ghcr.io/earthly/devcontainer-features/earthly:1": {
"bootstrap": true
}
},
"hostRequirements": {
"cpus": 12
Expand Down
2 changes: 1 addition & 1 deletion .github/contribution/CLIENT_GUIDELINES.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:

```sh
git clone https://github.com/sonrhq/core.git # Clone the repository
git clone https://github.com/sonr-io/core.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
Expand Down
2 changes: 1 addition & 1 deletion .github/contribution/DEVELOPERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:

```sh
git clone https://github.com/sonrhq/core.git # Clone the repository
git clone https://github.com/sonr-io/core.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
Expand Down
4 changes: 2 additions & 2 deletions .github/contribution/TESTNET.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:

```sh
git clone https://github.com/sonrhq/core.git # Clone the repository
git clone https://github.com/sonr-io/core.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
Expand All @@ -45,7 +45,7 @@ You will need to install and configure the following dependencies on your machin
You can setup your macOS or Linux machine to be ready for local development with these steps:

```sh
git clone https://github.com/sonrhq/core.git # Clone the repository
git clone https://github.com/sonr-io/core.git # Clone the repository
sh scripts/install.sh # Install dependencies
task # Display the available commands
```
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/proto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Protobuf
# Protobuf runs buf (https://buf.build/) lint and check-breakage
# This workflow is only run when a .proto file has been changed
on:
pull_request:
paths:
- "proto/**"

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-lint-action@v1
with:
input: "proto"

break-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: bufbuild/[email protected]
- uses: bufbuild/buf-breaking-action@v1
with:
input: "proto"
against: "https://github.com/${{ github.repository }}.git#branch=${{ github.event.pull_request.base.ref }},ref=HEAD~1,subdir=proto"
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
- run: make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

publish-buf:
name: Publish buf.build proto
runs-on: ubuntu-latest
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ jobs:
go.sum
Makefile
.github/workflows/build.yml
- uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}

- uses: actions/setup-go@v4
if: env.GIT_DIFF
Expand All @@ -62,6 +66,7 @@ jobs:
env:
GOOS: ${{ matrix.targetos }}
GOARCH: ${{ matrix.arch }}

- name: Download Dependencies
if: env.GIT_DIFF
run: go mod download
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,5 @@ yarn-error.log*
# vercel
.vercel
bin/sonr

studio/
26 changes: 11 additions & 15 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ env:
- CGO_ENABLED=1
- WASMVM_URL=https://github.com/CosmWasm/wasmvm/releases/download
- COSMWASM_VERSION=v1.2.4
before:
hooks:
- go mod download

builds:
# Build - Linux (amd64)
- id: sonrd-linux-amd64
Expand Down Expand Up @@ -46,7 +42,7 @@ builds:
- CC=aarch64-linux-gnu-gcc
hooks:
pre:
- wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvm_muslc.aarch64.a -O /usr/lib/aarch64-linux-gnu/libwasmvm_muslc.a
- wget {{ .Env.WASMVM_URL }}/v1.3.0/libwasmvm_muslc.aarch64.a -O /opt/homebrew/lib/aarch64-linux-gnu/libwasmvm_muslc.a
main: ./cmd/sonrd
binary: sonrd
goos:
Expand Down Expand Up @@ -137,7 +133,7 @@ universal_binaries:
ids:
- sonrd-darwin-amd64
- sonrd-darwin-arm64
replace: false
replace: true
archives:
- id: zipped
builds:
Expand All @@ -158,7 +154,7 @@ archives:
name_template: "{{.ProjectName}}-{{ .Os }}-{{ .Arch }}"
format: binary
checksum:
name_template: "sha256sum.txt"
name_template: sha256sum.txt
algorithm: sha256
# ! ||--------------------------------------------------------------------------------||
# ! || Release and Changelog ||
Expand Down Expand Up @@ -186,7 +182,7 @@ release:
If you prefer to build from source, you can use the following commands:
````bash
git clone https://github.com/sonrhq/core
git clone https://github.com/sonr-io/core
cd core && git checkout v{{ .Version }}
make install
# Then run sonrd
Expand Down Expand Up @@ -225,16 +221,16 @@ changelog:
abbrev: -1
groups:
- title: Features
regexp: '.*?feat\(.*\):.*$'
regexp: .*?feat\(.*\):.*$
order: 0
- title: "Documentation"
regexp: '.*?docs\(.*\):.*$'
- title: Documentation
regexp: .*?docs\(.*\):.*$
order: 1
- title: "Fixes"
regexp: '.*?fix\(.*\):.*$'
- title: Fixes
regexp: .*?fix\(.*\):.*$
order: 2
- title: "Misc"
regexp: '.*?chore\(.*\):.*$'
- title: Misc
regexp: .*?chore\(.*\):.*$
order: 3
- title: Others
order: 999
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"kangping.protobuf",
"hangxingliu.vscode-systemd-support",
"atommaterial.a-file-icon-vscode",
"davidanson.vscode-markdownlint"
"davidanson.vscode-markdownlint",
"chrisbibby.hide-git-ignored"
]
}
30 changes: 4 additions & 26 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,31 +51,7 @@
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"!**/.git/hooks": true,
".dart_tool": true,
"**/.classpath": true,
"**/.factorypath": true,
"**/.flutter-plugins": true,
"**/.flutter-plugins-dependencies": true,
"**/.packages": true,
"**/.project": true,
"**/.settings": true,
"**/largeFolder": true,
"**/pubspec.lock": true,
"**pubspec.lock": true,
"**/.trunk/*out/": true,
"**/.trunk/*actions/": true,
"**/.trunk/*logs/": true,
"**/.trunk/*plugins/": true,
"**/**/types/*_test.go": true,
"proto/buf.lock": true,
"**/.circleci": true,
"**/.compodocrc*": true,
"**/.editorconfig": true,
"**/.gitattributes": true,
"**/.gitkeep": true,
"**/.gitignore": true,
".vscode/": true
},
"svg.preview.background": "custom",
"typescript.preferences.importModuleSpecifier": "non-relative",
Expand Down Expand Up @@ -140,5 +116,7 @@
"titleBar.inactiveBackground": "#7900f799",
"titleBar.inactiveForeground": "#e7e7e799"
},
"peacock.remoteColor": "#d31135"
"peacock.remoteColor": "#d31135",
"hidefiles.configurationType": "global",
"hidefiles.selectedProfile": "Strict"
}
Loading

0 comments on commit f6430df

Please sign in to comment.