-
Notifications
You must be signed in to change notification settings - Fork 114
更新CI,适配算法宏包 #632
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
更新CI,适配算法宏包 #632
Conversation
This file contains hidden or 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
5b273af to
c6f3aa8
Compare
用 fd 复制也更快,少了调用 shell 的时间。
…tup-texlive-action 这样免得维护两套 CI。 Continues 08614f9 Relates to BITNP/BIThesis-wiki#485
Resolves BITNP#631 algorithm + algorithmic 如需恢复原状: ```latex \renewcommand*{\algorithmicrequire}{\textbf{Require:}} \renewcommand*{\algorithmicensure}{\textbf{Ensure:}} \AtBeginEnvironment {algorithmic} {\normalsize} ``` algorithm2e 如需恢复原状: ```latex \SetKwInput{KwData}{Data} \SetKwInput{KwResult}{Result} \SetKwInput{KwIn}{Input} \SetKwInput{KwOut}{Output} \SetAlCapFnt{\normalsize} \SetAlCapNameFnt{\normalsize} \SetAlFnt{\normalsize} ``` Continues BITNP#456
c7a5e63 to
2a29360
Compare
e3ee574 to
4a11b0b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the CI to adapt to changes in the TeX Live environment and the algorithm package, and updates several workflow files and test scripts accordingly.
- Updated the test script to auto-detect and install required TeX Live packages based on regex output from ripgrep.
- Modified GitHub Actions workflows (test and release) to support multiple TeX Live versions and improve dependency management.
- Updated DEVELOPMENT.md instructions for Windows developers regarding Makefile prerequisites.
Reviewed Changes
Copilot reviewed 8 out of 18 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| scripts/test.py | Added dependency installation functionality and dynamic test discovery. |
| DEVELOPMENT.md | Updated documentation regarding Makefile prerequisites. |
| .github/workflows/test.yaml | Introduced a matrix strategy for TeX Live versions and conditionally set parameters. |
| .github/workflows/release.yml | Adjusted release workflow steps, updated TeX Live setup, and refined font installation. |
Files not reviewed (10)
- .github/tl_packages: Language not supported
- .github/tl_packages_compat: Language not supported
- Makefile: Language not supported
- bithesis.dtx: Language not supported
- examples/cover/latexmkrc: Language not supported
- examples/publications/latexmkrc: Language not supported
- examples/publications/main.tex: Language not supported
- tests/algorithm2e/main.tex: Language not supported
- tests/algorithmic/main.tex: Language not supported
- tests/publications/main.tex: Language not supported
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
大致确定最小 TeX Live 版本 BITNP/BIThesis-wiki#512
TeX Live 2021–2025 可编译 templates 和 tests,2024–2025 还可编译 handbooks、bithesis.pdf。(其余未测试,因为间接依赖的宏包没装全,又难以一一补全。)
https://github.com/BITNP/BIThesis/actions/runs/14550581993
适配算法宏包
Resolves #631
建议在如何排版算法(伪代码)? | BIThesis 把 algorithm2e 放到最前,2009年的 algorithms 宏集真难用。
H和h选项会影响算法内部的行距