Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-protoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Pantani authored Sep 11, 2023
2 parents 7b63ea5 + ef6c24a commit e0d2e6c
Show file tree
Hide file tree
Showing 27 changed files with 7,698 additions and 8 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/gen-nodetime-binaries.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Generate nodetime binaries

on:
push:
branches:
- main
paths:
- 'nodetime/*.go'
- 'scripts/gen-nodetime'
- 'scripts/data/gen-nodetime/**'
- '!scripts/data/gen-nodetime/tsconfig.json'

jobs:
gen-nodetime:
name: "Generate nodetime binaries"
runs-on: ubuntu-latest
concurrency: gen-nodetime
steps:
- uses: actions/checkout@v3

- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all

- uses: MOZGIII/install-ldid-action@v1
with:
tag: v2.1.5-procursus2

- uses: actions/setup-node@v3
with:
node-version: '16'

- run: ./scripts/gen-nodetime

- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v4
with:
title: "feat(nodetime): update binaries"
commit-message: "feat(nodetime): update binaries"
body: ""
branch: feat/gen-nodetime
2 changes: 1 addition & 1 deletion .github/workflows/stats.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
j1:
name: Ignite CLI Repository Statistics
name: Ignite Files Repository Statistics
runs-on: ubuntu-latest
steps:
- name: run-ghrs
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ help: Makefile

.PHONY: help

.DEFAULT_GOAL := install
.DEFAULT_GOAL := test
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- [#0001](https://github.com/ignite/cli/pull/0001) Add nodetime
- [#0003](https://github.com/ignite/ignite-files/pull/3) Add Hermes binaries

### Features
Expand Down
3 changes: 0 additions & 3 deletions go.mod

This file was deleted.

10 changes: 7 additions & 3 deletions go.work
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
go 1.21.0
go 1.21

use ./gex
use ./protoc
use (
./hermes
./nodetime
./gex
./protoc
)
3 changes: 3 additions & 0 deletions hermes/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/ignite/ignite-files/hermes

go 1.21
File renamed without changes.
6 changes: 6 additions & 0 deletions nodetime/data.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package nodetime

// Binary returns the compressed platform specific nodetime binary.
func Binary() []byte {
return binaryCompressed
}
6 changes: 6 additions & 0 deletions nodetime/data_darwin_amd64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package nodetime

import _ "embed" // embed is required for binary embedding.

//go:embed nodetime-darwin-amd64.tar.gz
var binaryCompressed []byte
6 changes: 6 additions & 0 deletions nodetime/data_darwin_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package nodetime

import _ "embed" // embed is required for binary embedding.

//go:embed nodetime-darwin-arm64.tar.gz
var binaryCompressed []byte
6 changes: 6 additions & 0 deletions nodetime/data_linux_amd64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package nodetime

import _ "embed" // embed is required for binary embedding.

//go:embed nodetime-linux-amd64.tar.gz
var binaryCompressed []byte
6 changes: 6 additions & 0 deletions nodetime/data_linux_arm64.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package nodetime

import _ "embed" // embed is required for binary embedding.

//go:embed nodetime-linux-arm64.tar.gz
var binaryCompressed []byte
3 changes: 3 additions & 0 deletions nodetime/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/ignite/ignite-files/nodetime

go 1.21
Binary file added nodetime/nodetime-darwin-amd64.tar.gz
Binary file not shown.
Binary file added nodetime/nodetime-darwin-arm64.tar.gz
Binary file not shown.
Binary file added nodetime/nodetime-linux-amd64.tar.gz
Binary file not shown.
Binary file added nodetime/nodetime-linux-arm64.tar.gz
Binary file not shown.
19 changes: 19 additions & 0 deletions scripts/data/gen-nodetime/nodetime
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env node

var mode = process.argv[2];
process.argv.splice(2, 1);

main();

function main() {
switch (mode) {
case "ts-proto": require("ts-proto/protoc-gen-ts_proto"); return;
case "sta": require("swagger-typescript-api/index"); return;
case "swagger-combine": require("swagger-combine/bin/swagger-combine"); return;
case "ibc-setup": require("@confio/relayer/build/binary/ibc-setup/index"); return;
case "ibc-relayer": require("@confio/relayer/build/binary/ibc-relayer/index"); return;
case "xrelayer": require("./dist/relayer"); return;
}

console.error("unknown cli command");
}
Loading

0 comments on commit e0d2e6c

Please sign in to comment.