Skip to content

Commit

Permalink
Merge branch 'release/2023.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
voluntas committed Sep 8, 2023
2 parents a44445a + 1dad11a commit 888a2ea
Show file tree
Hide file tree
Showing 57 changed files with 10,000 additions and 10,567 deletions.
36 changes: 36 additions & 0 deletions .air.toml
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
10 changes: 0 additions & 10 deletions .github/dependabot.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/renovate.json
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
}
]
}
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
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
70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

39 changes: 19 additions & 20 deletions .github/workflows/release.yml
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/
36 changes: 0 additions & 36 deletions .github/workflows/test.yml

This file was deleted.

9 changes: 6 additions & 3 deletions .gitignore
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
Loading

0 comments on commit 888a2ea

Please sign in to comment.