forked from bogdanb/hpmor
-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
54 additions
and
62 deletions.
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
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 |
---|---|---|
|
@@ -15,7 +15,7 @@ on: | |
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
# - name: test print | ||
|
@@ -25,13 +25,16 @@ jobs: | |
|
||
# steps are copied from make.yml | ||
|
||
- name: checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 1 # 0 if you want to push to repo | ||
|
||
- name: caching LaTeX files | ||
- name: Touch requirements.txt for pip caching | ||
run: touch requirements.txt | ||
|
||
- name: Cache LaTeX files | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
|
@@ -45,34 +48,28 @@ jobs: | |
hpmor*.xdv | ||
key: tex-cache | ||
|
||
- name: python set up | ||
- name: Python set up | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
# cache: "pip" | ||
|
||
- name: python cache set up | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-py-cache | ||
python-version: "3.12" | ||
cache: "pip" | ||
|
||
- name: check chapters for known issues | ||
- name: Check chapters for known issues | ||
run: python3 scripts/check_chapters.py | ||
|
||
- name: check pre-commit tests | ||
- name: Check pre-commit tests | ||
uses: pre-commit/[email protected] | ||
|
||
- name: install requirements | ||
- name: Install requirements | ||
run: sh scripts/install_requirements.sh > /dev/null | ||
|
||
- name: make PDFs | ||
- name: Make PDFs | ||
run: sh scripts/make_pdfs.sh > /dev/null | ||
|
||
- name: make eBooks | ||
- name: Make eBooks | ||
run: sh scripts/make_ebooks.sh | ||
|
||
- name: publish release | ||
- name: Publish release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: "${{ inputs.version_number }}" | ||
|
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 |
---|---|---|
|
@@ -10,16 +10,19 @@ on: | |
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- name: checkout repository | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 1 # 0 if you want to push to repo | ||
|
||
- name: caching LaTeX files | ||
- name: Touch requirements.txt for pip caching | ||
run: touch requirements.txt | ||
|
||
- name: Caching LaTeX files | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
|
@@ -33,33 +36,27 @@ jobs: | |
hpmor*.xdv | ||
key: tex-cache | ||
|
||
- name: python set up | ||
- name: Python set up | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
# cache: "pip" | ||
|
||
- name: python cache set up | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.pythonLocation }} | ||
key: ${{ env.pythonLocation }}-py-cache | ||
python-version: "3.12" | ||
cache: "pip" | ||
|
||
# - name: test ls before | ||
# run: | | ||
# pwd | ||
# ls -al | ||
|
||
- name: check chapters for known issues | ||
- name: Check chapters for known issues | ||
run: python3 scripts/check_chapters.py | ||
|
||
- name: check pre-commit tests | ||
- name: Check pre-commit tests | ||
uses: pre-commit/[email protected] | ||
|
||
- name: install requirements | ||
- name: Install requirements | ||
run: sh scripts/install_requirements.sh > /dev/null | ||
|
||
- name: print versions | ||
- name: Print versions | ||
run: | | ||
cat /etc/os-release | ||
xelatex -v | ||
|
@@ -68,18 +65,18 @@ jobs: | |
ebook-convert --version | ||
python3 --version | ||
- name: make PDFs | ||
- name: Make PDFs | ||
run: sh scripts/make_pdfs.sh > /dev/null | ||
|
||
- name: make eBooks | ||
- name: Make eBooks | ||
run: sh scripts/make_ebooks.sh | ||
|
||
- name: test ls after | ||
- name: Test ls after | ||
run: | | ||
pwd | ||
ls -al | ||
- name: upload files to release WorkInProgress | ||
- name: Upload files to release WorkInProgress | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
tag_name: WorkInProgress | ||
|
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
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
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
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
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
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,11 +1,12 @@ | ||
#!/bin/sh | ||
|
||
# update apt list | ||
sudo apt update --fix-missing | ||
sudo apt-get update --fix-missing | ||
|
||
sudo apt install texlive-xetex latexmk | ||
sudo apt-get install texlive-xetex texlive-lang-greek latexmk | ||
|
||
# ebook | ||
sudo apt install pandoc calibre texlive-extra-utils | ||
sudo apt-get install pandoc calibre texlive-extra-utils imagemagick ghostscript | ||
# texlive-extra-utils for latexpand | ||
# imagemagick ghostscript : for pdf title page to image conversion |