Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
NJUThesis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU LUG
NJU LaTeX Templates
NJUThesis
Commits
4545e8f2
Commit
4545e8f2
authored
3 years ago
by
Yu Xiong
Browse files
Options
Downloads
Patches
Plain Diff
chore: 构建自动编译测试
parent
ad630e40
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.github/workflows/build.yml
+59
-7
59 additions, 7 deletions
.github/workflows/build.yml
source/njuthesis.dtx
+3
-2
3 additions, 2 deletions
source/njuthesis.dtx
with
62 additions
and
9 deletions
.github/workflows/build.yml
+
59
−
7
View file @
4545e8f2
...
@@ -12,24 +12,76 @@ on:
...
@@ -12,24 +12,76 @@ on:
-
master
-
master
jobs
:
jobs
:
build_test
:
runs-on
:
ubuntu-latest
if
:
"
!startsWith(github.ref,
'refs/tags/v')"
strategy
:
matrix
:
latex
:
[
xelatex
,
lualatex
]
steps
:
-
name
:
Set up Git repository
uses
:
actions/checkout@v2
-
name
:
Download njuvisual package (1/2)
uses
:
wei/curl@master
with
:
args
:
-s -o "njuvisual.dtx" "https://mirrors.rit.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx"
-
name
:
Download njuvisual package (2/2)
uses
:
wei/curl@master
with
:
args
:
-s -o "njuvisual-curves.dtx" "https://mirrors.rit.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
-
name
:
Extract cls from njuthesis
uses
:
FengChendian/latex-dtx2cls-action@4.0.1
with
:
root_file
:
njuthesis.dtx
working_directory
:
./source/
-
name
:
Extract sty from njuvisual
uses
:
FengChendian/latex-dtx2cls-action@4.0.1
with
:
root_file
:
njuvisual.dtx
working_directory
:
./
-
name
:
Copy files to test folder
run
:
cp ./njuvisual.sty source/njuthesis.cls test/
-
name
:
Compile to PDF
uses
:
HermitSun/latex-action@v3
with
:
root_file
:
test.tex
working_directory
:
./test/
latexmk_use_${{ matrix.latex }}
:
true
args
:
"
-bibtex"
-
name
:
Upload PDF
uses
:
actions/upload-artifact@v2
with
:
name
:
PDF_${{ matrix.latex }}
path
:
test/test.pdf
release
:
release
:
runs-on
:
ubuntu-latest
runs-on
:
ubuntu-latest
if
:
startsWith(github.ref, 'refs/tags/v')
if
:
startsWith(github.ref, 'refs/tags/v')
steps
:
steps
:
-
name
:
Set up Git repository
-
name
:
Set up Git repository
uses
:
actions/checkout@v2
uses
:
actions/checkout@v2
-
name
:
Set Version
-
name
:
Set Version
run
:
echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
run
:
echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
-
name
:
Download njuvisual package (1/2)
-
name
:
Download njuvisual package (1/2)
uses
:
wei/curl@master
uses
:
wei/curl@master
with
:
with
:
args
:
-s -o "njuvisual.dtx" "https://mirror
.nju
.edu
.cn
/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx"
args
:
-s -o "njuvisual.dtx" "https://mirror
s.rit
.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual.dtx"
-
name
:
Download njuvisual package (2/2)
-
name
:
Download njuvisual package (2/2)
uses
:
wei/curl@master
uses
:
wei/curl@master
with
:
with
:
args
:
-s -o "njuvisual-curves.dtx" "https://mirror
.nju
.edu
.cn
/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
args
:
-s -o "njuvisual-curves.dtx" "https://mirror
s.rit
.edu/CTAN/macros/latex/contrib/njuvisual/njuvisual-curves.dtx"
-
name
:
Extract cls from njuthesis
-
name
:
Extract cls from njuthesis
uses
:
FengChendian/latex-dtx2cls-action@4.0.1
uses
:
FengChendian/latex-dtx2cls-action@4.0.1
...
@@ -53,12 +105,12 @@ jobs:
...
@@ -53,12 +105,12 @@ jobs:
pre_compile
:
"
xetex
njuthesis.dtx"
pre_compile
:
"
xetex
njuthesis.dtx"
post_compile
:
"
mv
njuthesis.pdf
njuthesis-$VERSION.pdf"
post_compile
:
"
mv
njuthesis.pdf
njuthesis-$VERSION.pdf"
-
name
:
Zip R
elease Sourc
e
-
name
:
Zip R
ELEASE packag
e
run
:
|
run
:
zip -r njuthesis-$VERSION.zip .vscode docs/njuthesis-sample.bib docs/njuthesis-sample.tex source/njuthesis.cls njuvisual.sty conf.txsprofile LICENSE README.md
zip -r njuthesis-$VERSION.zip .vscode docs/njuthesis-sample.bib docs/njuthesis-sample.tex source/njuthesis.cls njuvisual.sty conf.txsprofile LICENSE README.md
-
name
:
Zip CTAN
Sourc
e
-
name
:
Zip CTAN
packag
e
run
:
|
run
:
mkdir -p njuthesis/
mkdir -p njuthesis/
cp source/njuthesis-$VERSION.pdf njuthesis/njuthesis.pdf
cp source/njuthesis-$VERSION.pdf njuthesis/njuthesis.pdf
cp source/README-CTAN.md njuthesis/README.md
cp source/README-CTAN.md njuthesis/README.md
...
@@ -69,7 +121,7 @@ jobs:
...
@@ -69,7 +121,7 @@ jobs:
with
:
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
prerelease
:
false
prerelease
:
false
files
:
|
files
:
source/njuthesis-v*.pdf
source/njuthesis-v*.pdf
njuthesis-v*.zip
njuthesis-v*.zip
njuthesis-ctan-v*.zip
njuthesis-ctan-v*.zip
This diff is collapsed.
Click to expand it.
source/njuthesis.dtx
+
3
−
2
View file @
4545e8f2
...
@@ -105,7 +105,7 @@ through XeTeX.
...
@@ -105,7 +105,7 @@ through XeTeX.
%
%
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\NeedsTeXFormat{LaTeX2e}
%<class>\RequirePackage{expl3}
%<class>\RequirePackage{expl3}
%<class>\GetIdInfo $Id: njuthesis.dtx 0.12.
0
2021-11-30 11:30:00 +0800 NJU LUG <nju.lug@yaoge123.cn> $
%<class>\GetIdInfo $Id: njuthesis.dtx 0.12.
1
2021-11-30 11:30:00 +0800 NJU LUG <nju.lug@yaoge123.cn> $
%<class> { Thesis template for Nanjing University }
%<class> { Thesis template for Nanjing University }
%<class>\ProvidesExplClass{njuthesis}
%<class>\ProvidesExplClass{njuthesis}
%<class>{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
%<class>{\ExplFileDate}{\ExplFileVersion}{\ExplFileDescription}
...
@@ -135,7 +135,7 @@ through XeTeX.
...
@@ -135,7 +135,7 @@ through XeTeX.
% Nanjing University Linux User Group
% Nanjing University Linux User Group
% \thanks{E-mail: \href{mailto:nju.lug@yaoge123.cn}{nju.lug@yaoge123.cn}}}
% \thanks{E-mail: \href{mailto:nju.lug@yaoge123.cn}{nju.lug@yaoge123.cn}}}
%
%
% \date{v0.12.
0
\\ Released 2021-11-30}
% \date{v0.12.
1
\\ Released 2021-11-30}
%
%
% \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.1}{2021/09/04}{开始开发。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
% \changes{v0.2}{2021/09/07}{初步搭建了可用的模板。}
...
@@ -153,6 +153,7 @@ through XeTeX.
...
@@ -153,6 +153,7 @@ through XeTeX.
% \changes{v0.10}{2021/09/24}{删除了生成自述文件的代码。}
% \changes{v0.10}{2021/09/24}{删除了生成自述文件的代码。}
% \changes{v0.12}{2021/11/28}{删除内置的 \pkg{njuvisual} 代码。}
% \changes{v0.12}{2021/11/28}{删除内置的 \pkg{njuvisual} 代码。}
% \changes{v0.12}{2021/11/29}{更新了说明文档封面设计。}
% \changes{v0.12}{2021/11/29}{更新了说明文档封面设计。}
% \changes{v0.12}{2021/11/30}{区分测试文件和空白模板。}
%
%
% \maketitle
% \maketitle
%
%
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment