如何在使用zjuthesis写作个人论文时依然能正确运行CI #118
MARMOTatZJU
started this conversation in
General
Replies: 2 comments 6 replies
-
你可以把相关的 check 代码注释掉,暂时想不到其他很好的办法 |
Beta Was this translation helpful? Give feedback.
1 reply
-
可以设置触发 CI 的 branch 白名单和黑名单,例如以下设置了所有以 更新:更复杂的条件也可以设置(挺好玩的),不过如果用户没有修改模板本身,写作周期也没有长到因为 latex 组件更新而引入新问题(还要保证本地和 CI 里的版本一致……),基本都不用触发 CI。 文档:Workflow syntax for GitHub Actions diff --git a/.github/workflows/build_test.yml b/.github/workflows/build_test.yml
index 432145b..7978232 100644
--- a/.github/workflows/build_test.yml
+++ b/.github/workflows/build_test.yml
@@ -2,6 +2,8 @@ name: Build Tests
on:
push:
+ branches-ignore:
+ - "*-thesis"
paths-ignore:
- ".github/**"
- ".gitattributes" |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用zjuthesis时,如果直接修改默认的zjuthesis.tex及其调用的tex脚本,在CI期间,编译得到的pdf应该会和原先的不一致而失败(如下图所示)。如果依然希望在此时使用CI来验证工程的正确性,请问比较好的实践是?
比如另外创建入口personal-thesis.tex然后修改latexmkrc的内容(@default_files=('zjuthesis.tex'))?
Beta Was this translation helpful? Give feedback.
All reactions