-
Notifications
You must be signed in to change notification settings - Fork 7
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
0 parents
commit 0f76499
Showing
13 changed files
with
634 additions
and
0 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,52 @@ | ||
name: "Bug report" | ||
description: Bug report | ||
labels: [bug] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
感谢你花时间填写此错误报告,请 **务必确认你的issue不是重复的且不是因为你的操作或版本问题** 。 | ||
- type: checkboxes | ||
attributes: | ||
label: 请确认以下内容 | ||
description: | | ||
你必须勾选以下所有内容,否则你的issue可能会被直接关闭。或者你可以去 [讨论区](https://github.com/vscodev/kikoeru/discussions) 。 | ||
options: | ||
- label: | | ||
我确定使用的是 `Kikoeru` 的最新版本。 | ||
- label: | | ||
我确定没有重复的issue或讨论。 | ||
- label: | | ||
我确定是程序本身的问题,而不是其他原因(例如 `网络` ,`依赖` 或 `操作` )。 | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Kikoeru 版本 | ||
description: | | ||
你使用的是哪个版本的软件?你可以在 `仪表盘` -> `系统信息` -> `程序版本` 中找到。 | ||
placeholder: "0.1.0" | ||
validations: | ||
required: true | ||
- type: input | ||
id: driver | ||
attributes: | ||
label: 使用的存储驱动 | ||
description: | | ||
你使用的是哪个存储驱动? | ||
placeholder: "OneDrive" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: bug-description | ||
attributes: | ||
label: 问题描述 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: 日志 | ||
description: | | ||
请复制粘贴错误日志,或者截图。 |
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,5 @@ | ||
blank_issues_enabled: false | ||
contact_links: | ||
- name: Questions & Discussions | ||
url: https://github.com/vscodev/kikoeru/discussions | ||
about: Use GitHub discussions for message-board style questions and discussions. |
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,34 @@ | ||
name: "Feature request" | ||
description: Feature request | ||
labels: [enhancement] | ||
body: | ||
- type: checkboxes | ||
attributes: | ||
label: 请确认以下所有内容 | ||
description: | | ||
你必须勾选以下所有内容,否则你的issue可能会被直接关闭。或者你可以去 [讨论区](https://github.com/vscodev/kikoeru/discussions) 。 | ||
options: | ||
- label: | | ||
我确定使用的是 `Kikoeru` 的最新版本。 | ||
- label: | | ||
我确定没有重复的issue或讨论。 | ||
- label: | | ||
我确定这是一个受众需求而不是单纯出于个人意愿,并且当前没有被实现。 | ||
- type: textarea | ||
id: feature-description | ||
attributes: | ||
label: 需求描述 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: suggested-solution | ||
attributes: | ||
label: 实现思路 | ||
description: | | ||
实现此需求的解决思路。 | ||
- type: textarea | ||
id: additional-context | ||
attributes: | ||
label: 附件 | ||
description: | | ||
相关的任何其他上下文或截图,或者你觉得有帮助的信息。 |
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,60 @@ | ||
name: Publish Docker dev image | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ secrets.GH_REPO }} | ||
token: ${{ secrets.GH_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'web/package.json' | ||
check-latest: true | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Build frontend | ||
run: | | ||
pnpm install | ||
pnpm build | ||
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/ | ||
working-directory: ./web | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
file: dev.Dockerfile | ||
platforms: linux/amd64 | ||
push: true | ||
tags: ghcr.io/vscodev/kikoeru:dev |
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,59 @@ | ||
name: Publish Docker image | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
docker: | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ secrets.GH_REPO }} | ||
token: ${{ secrets.GH_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'web/package.json' | ||
check-latest: true | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Build frontend | ||
run: | | ||
pnpm install | ||
pnpm build | ||
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/ | ||
working-directory: ./web | ||
|
||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v3 | ||
|
||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and push | ||
uses: docker/build-push-action@v6 | ||
with: | ||
context: . | ||
platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/386,linux/arm/v6,linux/s390x | ||
push: true | ||
tags: ghcr.io/vscodev/kikoeru:latest |
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,89 @@ | ||
name: Linux Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- arch: amd64 | ||
toolchain: x86_64-linux-musl-cross | ||
cc: x86_64-linux-musl-gcc | ||
- arch: arm64 | ||
toolchain: aarch64-linux-musl-cross | ||
cc: aarch64-linux-musl-gcc | ||
|
||
steps: | ||
- name: Install toolchains | ||
run: | | ||
curl -L -o "${{matrix.toolchain}}.tgz" "https://musl.cc/${{matrix.toolchain}}.tgz" | ||
sudo tar xf "${{matrix.toolchain}}.tgz" --strip-components 1 -C /usr/local | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ secrets.GH_REPO }} | ||
token: ${{ secrets.GH_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Get latest release version | ||
run: | | ||
echo "APP_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
check-latest: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'web/package.json' | ||
check-latest: true | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Build frontend | ||
run: | | ||
pnpm install | ||
pnpm build | ||
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/ | ||
working-directory: ./web | ||
|
||
- name: Build | ||
run: | | ||
go mod download | ||
export GOARCH=${{ matrix.arch }} | ||
export CC=${{ matrix.cc }} | ||
bash build.sh | ||
- name: Package | ||
run: | | ||
dist="kikoeru-linux-${{ matrix.arch }}" | ||
mkdir -p "$dist" | ||
cp kikoeru scripts/start.sh "$dist/" | ||
tar zcf "$dist.tar.gz" "$dist/" | ||
- name: Publish | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ env.APP_VERSION }} | ||
tag_name: ${{ env.APP_VERSION }} | ||
draft: true | ||
body: | | ||
- 本更新包括稳定性提升和错误修复。 | ||
files: | | ||
kikoeru-*.* |
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,79 @@ | ||
name: macOS Release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
runs-on: macos-latest | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
arch: | ||
- amd64 | ||
- arm64 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: ${{ secrets.GH_REPO }} | ||
token: ${{ secrets.GH_PAT }} | ||
fetch-depth: 0 | ||
|
||
- name: Get latest release version | ||
run: | | ||
echo "APP_VERSION=$(git describe --abbrev=0 --tags)" >> $GITHUB_ENV | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version-file: 'go.mod' | ||
check-latest: true | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version-file: 'web/package.json' | ||
check-latest: true | ||
|
||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Build frontend | ||
run: | | ||
pnpm install | ||
pnpm build | ||
cp -a dist/spa/. $GITHUB_WORKSPACE/public/dist/ | ||
working-directory: ./web | ||
|
||
- name: Build | ||
run: | | ||
go mod download | ||
export GOARCH=${{ matrix.arch }} | ||
bash build.sh | ||
- name: Package | ||
run: | | ||
dist="kikoeru-macos-${{ matrix.arch }}" | ||
mkdir -p "$dist" | ||
cp kikoeru scripts/start.sh "$dist/" | ||
tar zcf "$dist.tar.gz" "$dist/" | ||
- name: Publish | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
name: ${{ env.APP_VERSION }} | ||
tag_name: ${{ env.APP_VERSION }} | ||
draft: true | ||
body: | | ||
- 本更新包括稳定性提升和错误修复。 | ||
files: | | ||
kikoeru-*.* |
Oops, something went wrong.