Skip to content

Commit

Permalink
feat: support TeXLive 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
xu-cheng committed Mar 16, 2024
1 parent d9f893f commit ae9a77c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
strategy:
fail-fast: false
matrix:
texlive_version: [2020, 2021, 2022, latest]
texlive_version: [2020, 2021, 2022, 2023, latest]
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This action is suitable to run arbitrary commands in a LaTeX environment. If you

* `run`: Arbitrary bash codes to be executed. It will be executed in the form of `bash -eo pipefail -c {input}`.
* `scheme`: The scheme of TeXLive to be used, either full or small. By default, full TeXLive is used. This input cannot co-exist with `docker_image` input.
* `texlive_version`: The version of TeXLive to be used. Supported inputs include 2020, 2021, 2022, 2023, and latest. By default the latest TeXLive is used. This input cannot co-exist with `docker_image` input.
* `texlive_version`: The version of TeXLive to be used. Supported inputs include 2020, 2021, 2022, 2023, 2024, and latest. By default the latest TeXLive is used. This input cannot co-exist with `docker_image` input.
* `docker_image`: Custom which docker image to be used. Only [latex-docker images](https://github.com/xu-cheng/latex-docker/pkgs/container/texlive-full) are supported.

## Example
Expand Down
7 changes: 5 additions & 2 deletions action.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ fi

if [[ -z "$INPUT_DOCKER_IMAGE" ]]; then
case "$INPUT_TEXLIVE_VERSION" in
"" | "latest" | "2023")
"" | "latest" | "2024")
image_version="latest"
;;
"2023")
image_version="20240301"
;;
"2022")
image_version="20230301"
;;
Expand All @@ -43,7 +46,7 @@ if [[ -z "$INPUT_DOCKER_IMAGE" ]]; then
image_version="20210301"
;;
*)
error "TeX Live version $INPUT_TEXLIVE_VERSION is not supported. The currently supported versions are 2020-2023 or latest."
error "TeX Live version $INPUT_TEXLIVE_VERSION is not supported. The currently supported versions are 2020-2024 or latest."
;;
esac

Expand Down

0 comments on commit ae9a77c

Please sign in to comment.