Skip to content

Commit 712d5ec

Browse files
committed
init
0 parents  commit 712d5ec

13 files changed

+633
-0
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: "Bug report"
2+
description: Bug report
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
感谢你花时间填写此错误报告,请 **务必确认你的issue不是重复的且不是因为你的操作或版本问题** 。
9+
10+
- type: checkboxes
11+
attributes:
12+
label: 请确认以下内容
13+
description: |
14+
你必须勾选以下所有内容,否则你的issue可能会被直接关闭。或者你可以去 [讨论区](https://github.com/vscodev/kikoeru/discussions) 。
15+
options:
16+
- label: |
17+
我确定使用的是 `Kikoeru` 的最新版本。
18+
- label: |
19+
我确定没有重复的issue或讨论。
20+
- label: |
21+
我确定是程序本身的问题,而不是其他原因(例如 `网络` ,`依赖` 或 `操作` )。
22+
23+
- type: input
24+
id: version
25+
attributes:
26+
label: Kikoeru 版本
27+
description: |
28+
你使用的是哪个版本的软件?你可以在 `仪表盘` -> `系统信息` -> `程序版本` 中找到。
29+
placeholder: "20250101"
30+
validations:
31+
required: true
32+
- type: input
33+
id: driver
34+
attributes:
35+
label: 使用的存储驱动
36+
description: |
37+
你使用的是哪个存储驱动?
38+
placeholder: "Onedrive"
39+
validations:
40+
required: true
41+
- type: textarea
42+
id: bug-description
43+
attributes:
44+
label: 问题描述
45+
validations:
46+
required: true
47+
- type: textarea
48+
id: logs
49+
attributes:
50+
label: 日志
51+
description: |
52+
请复制粘贴错误日志,或者截图。

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Questions & Discussions
4+
url: https://github.com/vscodev/kikoeru/discussions
5+
about: Use GitHub discussions for message-board style questions and discussions.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: "Feature request"
2+
description: Feature request
3+
labels: [enhancement]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: 请确认以下所有内容
8+
description: |
9+
你必须勾选以下所有内容,否则你的issue可能会被直接关闭。或者你可以去 [讨论区](https://github.com/vscodev/kikoeru/discussions) 。
10+
options:
11+
- label: |
12+
我确定使用的是 `Kikoeru` 的最新版本。
13+
- label: |
14+
我确定没有重复的issue或讨论。
15+
- label: |
16+
我确定这是一个受众需求而不是单纯出于个人意愿,并且当前没有被实现。
17+
- type: textarea
18+
id: feature-description
19+
attributes:
20+
label: 需求描述
21+
validations:
22+
required: true
23+
- type: textarea
24+
id: suggested-solution
25+
attributes:
26+
label: 实现思路
27+
description: |
28+
实现此需求的解决思路。
29+
- type: textarea
30+
id: additional-context
31+
attributes:
32+
label: 附件
33+
description: |
34+
相关的任何其他上下文或截图,或者你觉得有帮助的信息。
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
name: Publish Docker dev image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
docker:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
repository: ${{ secrets.GH_REPO }}
19+
token: ${{ secrets.GH_PAT }}
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: 'web/package.json'
26+
check-latest: true
27+
28+
- name: Install pnpm
29+
uses: pnpm/action-setup@v4
30+
with:
31+
version: 9
32+
33+
- name: Build frontend
34+
run: |
35+
pnpm install
36+
pnpm build
37+
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/
38+
working-directory: ./web
39+
40+
- name: Set up QEMU
41+
uses: docker/setup-qemu-action@v3
42+
43+
- name: Set up Docker Buildx
44+
uses: docker/setup-buildx-action@v3
45+
46+
- name: Login to GitHub Container Registry
47+
uses: docker/login-action@v3
48+
with:
49+
registry: ghcr.io
50+
username: ${{ github.repository_owner }}
51+
password: ${{ secrets.GITHUB_TOKEN }}
52+
53+
- name: Build and push
54+
uses: docker/build-push-action@v6
55+
with:
56+
context: .
57+
file: dev.Dockerfile
58+
platforms: linux/amd64
59+
push: true
60+
tags: ghcr.io/vscodev/kikoeru:dev

.github/workflows/docker-image.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Publish Docker image
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
docker:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
packages: write
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
repository: ${{ secrets.GH_REPO }}
19+
token: ${{ secrets.GH_PAT }}
20+
fetch-depth: 0
21+
22+
- name: Setup Node.js
23+
uses: actions/setup-node@v4
24+
with:
25+
node-version-file: 'web/package.json'
26+
check-latest: true
27+
28+
- name: Install pnpm
29+
uses: pnpm/action-setup@v4
30+
with:
31+
version: 9
32+
33+
- name: Build frontend
34+
run: |
35+
pnpm install
36+
pnpm build
37+
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/
38+
working-directory: ./web
39+
40+
- name: Set up QEMU
41+
uses: docker/setup-qemu-action@v3
42+
43+
- name: Set up Docker Buildx
44+
uses: docker/setup-buildx-action@v3
45+
46+
- name: Login to GitHub Container Registry
47+
uses: docker/login-action@v3
48+
with:
49+
registry: ghcr.io
50+
username: ${{ github.repository_owner }}
51+
password: ${{ secrets.GITHUB_TOKEN }}
52+
53+
- name: Build and push
54+
uses: docker/build-push-action@v6
55+
with:
56+
context: .
57+
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x
58+
push: true
59+
tags: ghcr.io/vscodev/kikoeru:latest

.github/workflows/linux-release.yml

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Linux Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
platform:
18+
- amd64
19+
- arm64
20+
21+
steps:
22+
- name: Install dependencies for arm64
23+
if: matrix.platform == 'arm64'
24+
run: |
25+
sudo apt-get update
26+
sudo apt install gcc-aarch64-linux-gnu
27+
28+
- name: Checkout
29+
uses: actions/checkout@v4
30+
with:
31+
repository: ${{ secrets.GH_REPO }}
32+
token: ${{ secrets.GH_PAT }}
33+
fetch-depth: 0
34+
35+
- name: Get latest release version
36+
run: |
37+
echo "APP_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
38+
39+
- name: Set up Go
40+
uses: actions/setup-go@v5
41+
with:
42+
go-version-file: 'go.mod'
43+
check-latest: true
44+
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v4
47+
with:
48+
node-version-file: 'web/package.json'
49+
check-latest: true
50+
51+
- name: Install pnpm
52+
uses: pnpm/action-setup@v4
53+
with:
54+
version: 9
55+
56+
- name: Build frontend
57+
run: |
58+
pnpm install
59+
pnpm build
60+
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/
61+
working-directory: ./web
62+
63+
- name: Build
64+
run: |
65+
go mod download
66+
export GOARCH=${{ matrix.platform }}
67+
if [ "${{ matrix.platform }}" = "arm64" ]; then
68+
export CC=aarch64-linux-gnu-gcc
69+
fi
70+
bash build.sh
71+
72+
- name: Package
73+
run: |
74+
dist="kikoeru-linux-${{ matrix.platform }}"
75+
mkdir -p "$dist"
76+
cp kikoeru scripts/start.sh "$dist/"
77+
tar zcf "$dist.tar.gz" "$dist/"
78+
79+
- name: Publish
80+
uses: softprops/action-gh-release@v2
81+
with:
82+
name: ${{ env.APP_VERSION }}
83+
tag_name: ${{ env.APP_VERSION }}
84+
draft: true
85+
body: |
86+
The releases are generated by GitHub Actions.
87+
files: |
88+
kikoeru-*.*

.github/workflows/macos-release.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: macOS Release
2+
3+
on:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: write
8+
9+
jobs:
10+
release:
11+
name: Release
12+
runs-on: macos-latest
13+
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
platform:
18+
- amd64
19+
- arm64
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
with:
25+
repository: ${{ secrets.GH_REPO }}
26+
token: ${{ secrets.GH_PAT }}
27+
fetch-depth: 0
28+
29+
- name: Get latest release version
30+
run: |
31+
echo "APP_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV
32+
33+
- name: Set up Go
34+
uses: actions/setup-go@v5
35+
with:
36+
go-version-file: 'go.mod'
37+
check-latest: true
38+
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v4
41+
with:
42+
node-version-file: 'web/package.json'
43+
check-latest: true
44+
45+
- name: Install pnpm
46+
uses: pnpm/action-setup@v4
47+
with:
48+
version: 9
49+
50+
- name: Build frontend
51+
run: |
52+
pnpm install
53+
pnpm build
54+
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/
55+
working-directory: ./web
56+
57+
- name: Build
58+
run: |
59+
go mod download
60+
export GOARCH=${{ matrix.platform }}
61+
bash build.sh
62+
63+
- name: Package
64+
run: |
65+
dist="kikoeru-macos-${{ matrix.platform }}"
66+
mkdir -p "$dist"
67+
cp kikoeru scripts/start.sh "$dist/"
68+
tar zcf "$dist.tar.gz" "$dist/"
69+
70+
- name: Publish
71+
uses: softprops/action-gh-release@v2
72+
with:
73+
name: ${{ env.APP_VERSION }}
74+
tag_name: ${{ env.APP_VERSION }}
75+
draft: true
76+
body: |
77+
The releases are generated by GitHub Actions.
78+
files: |
79+
kikoeru-*.*

0 commit comments

Comments
 (0)