Skip to content

Commit

Permalink
Fix check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Jan 31, 2025
1 parent 1fccfdb commit 78e64f1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ concurrency:
cancel-in-progress: true
jobs:
pdf:
name: latexmk paper
name: latexmk paper-conference
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
Expand All @@ -26,7 +26,7 @@ jobs:
if [ ! -f "latexmkrc" ]; then
cp "_latexmkrc" "latexmkrc"
fi
- run: latexmk paper
- run: latexmk paper-conference

# Highlight mis-spelled words in the PDF
- uses: bscott-zebra/cache-apt-pkgs-action@avoid_using_xargs
Expand All @@ -38,21 +38,21 @@ jobs:
run: |
for tex in $(ls *.tex content/*.tex 2>/dev/null); do
# The lualatex package "spelling" requires the content to be in a file ending with ".spell.bad"
aspell --mode=tex -l en_US --encoding=utf-8 --conf=./.aspell.conf -p ./.aspell.en.pws list < $tex | sort | uniq >> paper.spell.bad
aspell --mode=tex -l en_US --encoding=utf-8 --conf=./.aspell.conf -p ./.aspell.en.pws list < $tex | sort | uniq >> paper-conference.spell.bad
done
- run: latexmk paper
- run: latexmk paper-conference

- name: Job summary using texlogsieve
run: |
echo '```' >> $GITHUB_STEP_SUMMARY
texlogsieve < paper.log >> $GITHUB_STEP_SUMMARY || true
texlogsieve < paper-conference.log >> $GITHUB_STEP_SUMMARY || true
echo '```' >> $GITHUB_STEP_SUMMARY
- uses: actions/upload-artifact@v4
with:
name: test-result
path: |
paper.pdf
paper.log
paper-conference.pdf
paper-conference.log
word-count:
runs-on: ubuntu-latest
steps:
Expand All @@ -64,17 +64,17 @@ jobs:
package_file: '${{ github.workspace }}/Texlivefile'
- name: Count words
run: |
texcount -utf8 -inc paper.tex > texcount.txt
texcount -utf8 -inc paper-conference.tex > texcount.txt
echo "## TeXcount word count" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
cat "texcount.txt" >> $GITHUB_STEP_SUMMARY
texcount -utf8 -inc -v -html paper.tex > texcount.html
texcount -utf8 -inc -v -html paper-conference.tex > texcount.html
# output for summary
# too verbose - therefore disabled
#
# texcount -utf8 -inc -v -htmlcore paper.tex > texcount.html-body
# texcount -utf8 -inc -v -htmlcore paper-conference.tex > texcount.html-body
# echo "" >> $GITHUB_STEP_SUMMARY
# echo "## TeXcount LaTeX interpretation" >> $GITHUB_STEP_SUMMARY
# echo "" >> $GITHUB_STEP_SUMMARY
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/update-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ jobs:
- name: Prepare files
working-directory: /tmp/ltg
run: |
# We update check.yml manually (due to rights management of GitHub and "paper-conference.tex" naming)
rm .github/workflows/check.yml
if [ "${{ matrix.listings }}" == "minted" ]; then
# paper-conference.tex should not be overwritten
mv paper.tex paper-conference-minted.tex
Expand Down

0 comments on commit 78e64f1

Please sign in to comment.