-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
57 changed files
with
10,000 additions
and
10,567 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
root = "." | ||
testdata_dir = "testdata" | ||
tmp_dir = "tmp" | ||
|
||
[build] | ||
bin = "bin/kohaku-dev" | ||
cmd = "go build -race -o bin/kohaku-dev cmd/kohaku/main.go" | ||
delay = 1000 | ||
exclude_dir = ["tmp", "vendor", "testdata"] | ||
exclude_file = [] | ||
exclude_regex = ["_test.go"] | ||
exclude_unchanged = false | ||
follow_symlink = false | ||
full_bin = "" | ||
include_dir = [] | ||
include_ext = ["go", "tpl", "tmpl", "html"] | ||
kill_delay = "0s" | ||
log = "build-errors.log" | ||
send_interrupt = false | ||
stop_on_error = true | ||
|
||
[color] | ||
app = "" | ||
build = "yellow" | ||
main = "magenta" | ||
runner = "green" | ||
watcher = "cyan" | ||
|
||
[log] | ||
time = false | ||
|
||
[misc] | ||
clean_on_exit = false | ||
|
||
[screen] | ||
clear_on_rebuild = false |
This file was deleted.
Oops, something went wrong.
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 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"config:base", | ||
":timezone(Asia/Tokyo)", | ||
":combinePatchMinorReleases", | ||
":prHourlyLimitNone", | ||
":prConcurrentLimit10", | ||
"group:recommended", | ||
"group:allNonMajor", | ||
"schedule:weekly" | ||
], | ||
"dependencyDashboard": false, | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["minor", "patch", "pin", "digest"], | ||
"platformAutomerge": true, | ||
"automerge": true | ||
} | ||
] | ||
} |
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,37 @@ | ||
name: ci | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- "*.md" | ||
branches-ignore: | ||
- "master" | ||
tags-ignore: | ||
- "*" | ||
|
||
jobs: | ||
ci: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: setup go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: ./go.mod | ||
cache: true | ||
cache-dependency-path: ./go.sum | ||
|
||
- run: go version | ||
- run: go fmt . | ||
|
||
- uses: dominikh/[email protected] | ||
with: | ||
version: "2023.1.2" | ||
install-go: false | ||
|
||
- name: Test | ||
run: make test | ||
|
||
- name: Build | ||
run: make |
This file was deleted.
Oops, something went wrong.
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,32 +1,31 @@ | ||
name: Release Build | ||
name: release | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
- "*" | ||
|
||
jobs: | ||
|
||
build: | ||
name: build | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '^1.18' | ||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
with: | ||
go-version-file: ./go.mod | ||
cache: false | ||
|
||
- run: go install github.com/tcnksm/ghr@latest | ||
- run: go install github.com/tcnksm/ghr@latest | ||
|
||
- name: Build | ||
run: | | ||
GOOS=linux GOARCH=amd64 go build -o dist/kohaku_linux_amd64 cmd/kohaku/main.go | ||
GOOS=darwin GOARCH=amd64 go build -o dist/kohaku_darwin_amd64 cmd/kohaku/main.go | ||
GOOS=darwin GOARCH=arm64 go build -o dist/kohaku_darwin_arm64 cmd/kohaku/main.go | ||
gzip dist/* | ||
- name: Build | ||
run: | | ||
GOOS=linux GOARCH=amd64 go build -o dist/kohaku_linux_amd64 cmd/kohaku/main.go | ||
GOOS=darwin GOARCH=amd64 go build -o dist/kohaku_darwin_amd64 cmd/kohaku/main.go | ||
GOOS=darwin GOARCH=arm64 go build -o dist/kohaku_darwin_arm64 cmd/kohaku/main.go | ||
gzip dist/* | ||
- name: Release | ||
run: | | ||
ghr -t "${{ secrets.GITHUB_TOKEN }}" -u "${{ github.repository_owner }}" -r "kohaku" --replace "${GITHUB_REF##*/}" dist/ | ||
- name: Release | ||
run: | | ||
ghr -t "${{ secrets.GITHUB_TOKEN }}" -u "${{ github.repository_owner }}" -r "kohaku" --replace "${GITHUB_REF##*/}" dist/ |
This file was deleted.
Oops, something went wrong.
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,4 +1,7 @@ | ||
.DS_Store | ||
config.yaml | ||
bin/kohaku | ||
kohaku.log | ||
bin/* | ||
.grafana/* | ||
tmp/* | ||
|
||
config.ini | ||
kohaku.jsonl |
Oops, something went wrong.