这是indexloc提供的服务,不要输入任何密码
Skip to content

ci: build the sample resume in ci #2

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

Closed
wants to merge 14 commits into from

Conversation

jizusun
Copy link
Contributor

@jizusun jizusun commented May 9, 2025

relates to #4

@jizusun jizusun marked this pull request as draft May 9, 2025 17:15
@xiaohanyu
Copy link
Member

Thanks for your interest in this project, I guess this PR is try to set up an smoke test step for the CI pipeline just make resure that new commits won't break the real build, right?

Let me know when this PR is ready to merge, before merge, please make resure that the commits is squashed into one (or I can do that for you, just want to avoid to make the git history too tedious).

Thank you!

@jizusun
Copy link
Contributor Author

jizusun commented May 12, 2025

@xiaohanyu Thank you for your amazing work!

This PR is actually to make sure the latex setup on Ubuntu is reproducible.
Yes, please help to squash and merge the PR so that it appears one commit on the trunk branch, thank you!

Copy link
Member

@xiaohanyu xiaohanyu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just let me know whether you have to time to revise this PR, or I will do this accordingly.

@@ -0,0 +1,2 @@
node_modules
compose.yml
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK just got time to review this PR.

So I would suggest we remove docker related files in this PR and instead making all docker related files in #5.

So .dockerignore, Dockerfile and compose.yml is not needed in this PR.

- name: Install texlive-latex
run: |
sudo apt-get update
sudo apt-get install -y texlive-latex-base texlive-xetex texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. let us just use apt instead of apt-get across the whole github CI flow
  2. the minimum requirements for texlive dependency: sudo apt install -y texlive-xetex texlive-fonts-extra texlive-lang-all


- name: Install fonts
run: |
sudo apt install fonts-linuxlibertine
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove apt install fonts-linuxlibertine here because linux libertine font is already included in texlive-fonts-extra

run: |
sudo apt install fonts-linuxlibertine
sudo apt install fonts-noto-cjk fonts-noto-cjk-extra
sudo apt install latex-cjk-all
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

latex-cjk-all is included in texlive-lang-all package, so no need here.

I am planning to support more languages other than CJK, so let us just use texlive-lang-all.

node packages/cli/dist/cli.js build packages/cli/resources/resume.yml
ls -lah
- name: Check files
if: always()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if: always() can be removed?

@@ -0,0 +1,12 @@
FROM node:22-slim AS base
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let us add Dockerfile in your second PR #5

@@ -0,0 +1,5 @@

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, move compose.yml to your second PR #5

# - name: Setup TeX Live
# uses: teatimeguest/setup-texlive-action@v3
# with:
# packages: scheme-basic
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this part can be removed if not needed.

xiaohanyu pushed a commit that referenced this pull request May 19, 2025
Co-author: [@xiaohanyu](xiaohanyu1988@gmail.com)

Credit to [@jizusun](https://github.com/jizusun) for the first
[PR](#2) for YAMLResume.
@xiaohanyu
Copy link
Member

Close this PR with db197d4.

Thanks again for @jizusun !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants