-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow that performs basic test on Linux and Windows. Support Ruby 3.1 and higher. --------- Co-authored-by: Raphael <[email protected]>
- Loading branch information
Showing
5 changed files
with
81 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
workflow_dispatch: | ||
concurrency: | ||
group: ${{ github.ref }} | ||
cancel-in-progress: true | ||
jobs: | ||
test-pdflatex-linux-windows: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest] | ||
ruby: [ '3.1', '3.2', '3.3' ] | ||
name: "${{ matrix.os }} / ruby ${{ matrix.ruby }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Setup dependencies | ||
run: | | ||
bundle update --bundler | ||
bundle install | ||
- name: Install TeX Live | ||
uses: zauguin/install-texlive@v3 | ||
with: | ||
packages: > | ||
latex-bin scheme-basic | ||
- name: ltx2any | ||
run: | | ||
ruby ltx2any.rb test/test.tex | ||
test-pdflatex-win: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
ruby: [ '3.1', '3.2', '3.3' ] | ||
name: "windows-latest / ruby ${{ matrix.ruby }}" | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: ${{ matrix.ruby }} | ||
bundler-cache: true | ||
- name: Setup dependencies | ||
run: | | ||
bundle update --bundler | ||
bundle install | ||
- name: Install MiKTeX | ||
run: | | ||
choco install miktex --no-progress | ||
echo "C:\Program Files\MiKTeX\miktex\bin\x64" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 | ||
- name: Configure MiKTeX | ||
run: | | ||
initexmf --admin --set-config-value=[MPM]AutoInstall=1 | ||
miktex --admin packages update-package-database | ||
miktex --admin packages update | ||
miktex packages update | ||
miktex --admin packages install cm-super | ||
miktex --admin fndb refresh | ||
initexmf --admin --update-fndb | ||
initexmf --admin --mklinks --force | ||
updmap --admin | ||
initexmf --report > miktex-report.txt | ||
- name: ltx2any | ||
run: | | ||
ruby ltx2any.rb test/test.tex |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
.idea/ | ||
test_tmp | ||
test.log.md | ||
test.pdf |
This file contains 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
Empty file.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
\documentclass{article} | ||
|
||
\begin{document} | ||
Hello world. | ||
\end{document} |