Skip to content

Commit

Permalink
feat: add support for legacy versions (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
teatimeguest authored Nov 27, 2021
1 parent 8190d42 commit c83af72
Show file tree
Hide file tree
Showing 9 changed files with 941 additions and 648 deletions.
95 changes: 95 additions & 0 deletions .github/workflows/check-all-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
name: Check all versions

on: workflow_dispatch

jobs:
linux:
runs-on: ubuntu-latest
strategy:
matrix:
version:
- 2008
- 2009
- 2010
- 2011
- 2012
- 2013
- 2014
- 2015
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install TeX Live
uses: ./
with:
version: ${{ matrix.version }}
cache: false

- run: tlmgr --version

windows:
runs-on: windows-latest
strategy:
matrix:
version:
- 2008
- 2009
- 2010
- 2011
- 2012
- 2013
- 2014
- 2015
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install TeX Live
uses: ./
with:
version: ${{ matrix.version }}
cache: false

- run: tlmgr --version

macos:
runs-on: macos-latest
strategy:
matrix:
version:
- 2013
- 2014
- 2015
- 2016
- 2017
- 2018
- 2019
- 2020
- 2021
fail-fast: false
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Install TeX Live
uses: ./
with:
version: ${{ matrix.version }}
cache: false

- run: tlmgr --version
10 changes: 0 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,15 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
version: ['2019', 'latest']
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12

- run: npm ci
- run: npm run build

- name: Install TeX Live
uses: ./
with:
version: ${{ matrix.version }}
cache: false

- run: tlmgr --version
23 changes: 14 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Linux, Windows, and macOS are supported.

## Usage

Installing the latest version of TeX Live with `scheme-infraonly`:
Installing the latest version of TeX Live:

```yaml
- name: Setup TeX Live
Expand All @@ -21,8 +21,10 @@ Installing the latest version of TeX Live with `scheme-infraonly`:
run: tlmgr --version
```
Additional TeX packages to be installed
can be specified by the `packages` input:
The action installs TeX Live with
`scheme-infraonly` for `2016` or later versions, and
`scheme-minimal` for the other versions.
If you want to install additional packages, you can use the `packages` input:

```yaml
- name: Setup TeX Live
Expand All @@ -34,17 +36,17 @@ can be specified by the `packages` input:
hyperref
```

An old version of TeX Live is also available:
A legacy version of TeX Live is also available:

```yaml
- name: Setup TeX Live 2019
- name: Setup TeX Live 2008
uses: teatimeguest/setup-texlive-action@v1
with:
version: 2019
version: 2008
```

Versions prior to `2019` are currently not supported
as the `install-tl` script does not work properly on Windows and macOS.
Supported versions are `2008` to `2021` for Linux and Windows, and
`2013` to `2021` for macOS.

## Caching

Expand All @@ -59,6 +61,9 @@ If you want to disable caching, you can use the `cache` input:
cache: false
```

The value of the `packages` input is hashed and becomes part of the cache key,
so it affects which cache is restored.

## Inputs

All inputs are optional.
Expand All @@ -68,7 +73,7 @@ All inputs are optional.
|`cache`|Bool|Enable caching for `TEXDIR`. The default is `true`.|
|`packages`|String|Whitespace-separated list of TeX packages to install. Schemes and collections can also be specified.|
|`prefix`|String|TeX Live installation prefix. The default is `C:\TEMP\setup-texlive` on Windows, `/tmp/setup-texlive` on Linux and macOS.|
|`version`|String|Version of TeX Live to install. Supported values are `2019`, `2020`, `2021`, and `latest`.|
|`version`|String|Version of TeX Live to install. Supported values are `2008` to `2021`, and `latest`.|

## Outputs

Expand Down
Loading

0 comments on commit c83af72

Please sign in to comment.