Skip to content

Commit 9a340e1

Browse files
committed
Update docs, GitHub issue templates, workflows
1 parent 29dc5e4 commit 9a340e1

File tree

8 files changed

+31
-7
lines changed

8 files changed

+31
-7
lines changed

.editorconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ trim_trailing_whitespace = true
1010

1111
[*.md]
1212
trim_trailing_whitespace = false
13+
indent_size = 2
1314

1415
[*.{yml,yaml, vue}]
1516
indent_size = 2

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ name: Bug report
33
about: Build PHP or library failed, download failed, doesn't seem to work...
44
title: ''
55
labels: bug
6-
assignees: crazywhalecc
7-
6+
body:
7+
- type: textarea
8+
id: what-happened
9+
attributes:
10+
label: What happened?
11+
description: |
12+
Please tell us what you do, what you get and what you expected.
13+
Provide with some step-by-step instructions to reproduce the issue.
14+
If possible, attach a screenshot or log files in ./log directory.
15+
validations:
16+
required: true
817
---

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ name: Feature request
33
about: Suggest an idea for this project
44
title: ''
55
labels: new feature
6-
assignees: ''
6+
assignees: crazywhalecc
77

88
---

.github/workflows/tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,13 @@ jobs:
206206
if: ${{ !startsWith(matrix.os, 'windows-') }}
207207
run: php src/globals/test-extensions.php build_embed_cmd ${{ matrix.os }} ${{ matrix.php }}
208208

209+
- name: "Upload logs"
210+
if: ${{ always() && hashFiles('log/**') != '' }}
211+
uses: actions/upload-artifact@v4
212+
with:
213+
name: build-logs-${{ matrix.os }}-${{ matrix.php }}
214+
path: log
215+
209216
# - name: Setup tmate session
210217
# if: ${{ failure() }}
211218
# uses: mxschmitt/action-tmate@v3

.gitignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,12 @@ packlib_files.txt
4848
package-lock.json
4949
pnpm-lock.yaml
5050

51-
# craft.log
52-
craft.log
51+
# craft
5352
craft.yml
53+
54+
# SPC logs
55+
log/
56+
57+
# spc.phar
58+
spc.phar
59+
spc.exe

docs/en/guide/manual-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ If the build is successful, you will see the `buildroot/bin` directory in the cu
172172
If the build fails, you can use the `--debug` parameter to view detailed error information,
173173
or use the `--with-clean` to clear the old compilation results and recompile.
174174

175-
If the build still fails to use the above method, please submit an issue and attach your `craft.yml` and `craft.log`.
175+
If the build still fails to use the above method, please submit an issue and attach your `craft.yml` and `./log` archive.
176176

177177
## Step-by-step build command
178178

docs/zh/guide/manual-build.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ bin/spc craft --debug
149149

150150
如果中途构建出错,你可以使用 `--debug` 参数查看详细的错误信息,或者使用 `--with-clean` 参数清除旧的编译结果,重新编译。
151151

152-
如使用以上方式仍构建失败,请提交一个 issue,附上你的 `craft.yml`、`craft.log`
152+
如使用以上方式仍构建失败,请提交一个 issue,附上你的 `craft.yml` 文件、`log/` 目录的压缩包
153153

154154
## 分步构建命令
155155

phpstan.neon

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ parameters:
88
- '#class Fiber#'
99
- '#Attribute class JetBrains\\PhpStorm\\ArrayShape does not exist#'
1010
- '#Function Swoole\\Coroutine\\run not found.#'
11+
- '#Static call to instance method ZM\\Logger\\ConsoleColor#'
1112
dynamicConstantNames:
1213
- PHP_OS_FAMILY
1314
excludePaths:

0 commit comments

Comments
 (0)