Skip to content
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

Initial CI support #121

Merged
merged 13 commits into from
Mar 9, 2024
Merged

Initial CI support #121

merged 13 commits into from
Mar 9, 2024

Conversation

koppor
Copy link
Contributor

@koppor koppor commented Feb 25, 2022

This is a setup to solve #116.

1. Run tests against
* Ruby versions 2.3, 2.4, 2.5;

Update Ruby 3.0, 3.1, 3.2, 3.3 included.

Simple execution done with these versions. Real LaTeXing test only Ruby 2.5, because even that is outdated now (see https://gitlab.alpinelinux.org/alpine/aports/-/issues/13555#note_218801)

* GNU/Linux and TeXlive;

Update Simple texlive installation on the runner (using https://github.com/zauguin/install-texlive)

Done via https://github.com/reitzig/texlive-docker

* macOS and MacTeX (?);

Update Uses TeXLive instead of MacTeX. Hope, this is OK?

Note done; one could follow the steps at actions/runner-images#1143 (comment).

* Windows and MiKTeX/proTeXt (?).

Udate Done. But I have some ruby issues. See other comment below

With Docker hard to do actions/runner-images#1143 (comment); even though MiKTeX offers a Docker image.

2. Build and deploy docs (if applicable).

Not done.

3. Build and deploy gem (if commit tagged).

Not done. Could be done with a Google Cloud Platform action: https://andrewm.codes/blog/automating-ruby-gem-releases-with-github-actions/

When this update is in place, the output on GitHub is as follows:

grafik

I don't know whether this works with chew (https://github.com/reitzig/ltx2any/tree/gemification), but I think, this can be adapted when the development is continued.

Side comment: The motivation to look into this is that installing ruby on a Docker image is less a hazzle than ensuring that makeglossaries is called at the correct place in other build tools. cluttex was my choice after latexmk, because it is written in lua, which is available in LaTeX installations. However, it does trigger bibtex when a .bib file is updated. -- Maybe, a stand-alone binary can be generated in the future so that one does not need to play around with ruby versions.

@koppor
Copy link
Contributor Author

koppor commented Mar 6, 2024

I updated the PR to include macOS, Windows, and some more ruby versions.

Maybe, the number of ruby versions can be reduced?

I also have issues with Ruby on Windows:

Run ruby ltx2any.rb test/test.tex
[ltx2any] Copying files to tmp ... Done
pdflatex: security risk: running with elevated privileges
[ltx2any] PdfLaTeX(1) running ... Error
[ltx2any] Error: uninitialized constant PdfLaTeX::TexLogParser
          See test.err for details.

Copy link
Owner

@reitzig reitzig left a comment

Choose a reason for hiding this comment

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

Let's drop support for Ruby <3.1.

All of 2.x are EOL, and 3.0 is about to be: https://endoflife.date/ruby

@reitzig
Copy link
Owner

reitzig commented Mar 9, 2024

Can't seem to update the PR myself; will add suggestions.

Ah, via the web UI, I could.

.github/workflows/check.yml Outdated Show resolved Hide resolved
.github/workflows/check.yml Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
all EOL, or about to be
@reitzig reitzig merged commit 42819f4 into reitzig:master Mar 9, 2024
@koppor
Copy link
Contributor Author

koppor commented Mar 9, 2024

Can't seem to update the PR myself; will add suggestions.

Ah, via the web UI, I could.

You can also use GitHub's CLI

gh pr checkout 121

commit as usual. When doing git push, the remote is automatically the right one ^^.

@koppor
Copy link
Contributor Author

koppor commented Mar 9, 2024

Note that the Windows MiKTeX install cannot be performance increased, because Caching for choco install is still an open issue: chocolatey/choco#2134

@koppor
Copy link
Contributor Author

koppor commented Mar 9, 2024

Any improvements to the MiKTeX workflow should be contributed back to https://stackoverflow.com/a/76953318/873282.

@koppor koppor deleted the add-gh-actions branch March 11, 2024 18:21
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