-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into article-202-compilers_vs_interpreters
- Loading branch information
Showing
29 changed files
with
904 additions
and
65 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,76 @@ | ||
name: Render | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
render: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: "Fix cache permissions" | ||
run: | | ||
sudo chmod aoug+rw -R /var/cache/apt | ||
- name: Cache apt package lists and downloaded deb files | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
/var/cache/apt/archives/**.deb | ||
!/var/cache/apt/archives/partial | ||
!/var/cache/apt/archives/lock | ||
key: apt-packages-cache | ||
restore-keys: | | ||
${{ runner.os }}-apt | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y pandoc inkscape texlive-latex-base texlive-fonts-extra texlive-extra-utils poppler-utils | ||
- name: Run the PDF rendering script in the renderer folder | ||
run: make | ||
working-directory: renderer | ||
|
||
- name: Upload PDF files as an artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: booklet | ||
path: renderer/*.pdf | ||
|
||
release: | ||
needs: render | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/master' | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Download PDF artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: booklet | ||
path: ./renderer | ||
|
||
- name: List downloaded PDF files | ||
run: ls -la ./renderer | ||
|
||
- name: Get current date | ||
id: current_date | ||
run: echo "current_date=$(date +'%y%m%d%H%M')" >> $GITHUB_ENV | ||
|
||
- name: Create Release and Upload Assets | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: release-${{ env.current_date }} | ||
name: Release - ${{ env.current_date }} | ||
body: | | ||
This release was generated automatically upon a successful merge (new article added). | ||
files: ./renderer/*.pdf | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,4 +1,4 @@ | ||
# .gitignore | ||
|
||
# emacs backup files | ||
*~ | ||
*~ |
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 @@ | ||
*/*.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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# This is a Draft article | ||
|
||
This article serves as a test to see if all Markdown features are rendered correctly. Markdown files will be converted into Latex files and compiled into this PDF. | ||
|
||
You can **bold text** to emphasize important points or *italicize text* for a softer emphasis. You can also ~~cross out text~~ to indicate removal or edits. | ||
|
||
> This is a | ||
> blockquote that can be used to highlight important quotes or thoughts. | ||
Inline code can be added like this: `const x = 10;`. | ||
|
||
To include math block, use dollar signs: | ||
$$a^2 + b^2 = c^2$$ | ||
|
||
To include code blocks, use triple backticks: | ||
```python | ||
def greet(): | ||
print("Hello World!") | ||
``` | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,20 @@ | ||
# This is a Draft article | ||
|
||
You can create ordered or unordered lists: | ||
|
||
- Item 1 | ||
- Item 2 | ||
|
||
1. First | ||
2. Second | ||
|
||
Or a table: | ||
|
||
| Fruit | Color | Calories | | ||
|-------|-------|---------| | ||
| Apple | Red | 95 | | ||
| Banana| Yellow| 105 | | ||
|
||
Here is a [Link to the TILICS Repo](https://github.com/unibas-tilics/tilics). | ||
|
||
Note that, images will _not_ be shown ![Placeholder](https://upload.wikimedia.org/wikipedia/commons/b/bf/Universit%C3%A4t_Basel_2018_logo.svg). |
Oops, something went wrong.