Skip to content

Commit

Permalink
refactor: rearranged
Browse files Browse the repository at this point in the history
  • Loading branch information
teatimeguest committed Apr 1, 2024
1 parent 713aa45 commit 6815e26
Show file tree
Hide file tree
Showing 114 changed files with 996 additions and 1,377 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/e2e-historic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,9 @@ jobs:
- name: Generate matrix
id: generate
run: |
./scripts/generate-matrix.jq packages/data/data/texlive-versions.json |
tee -a "${GITHUB_OUTPUT}"
./scripts/generate-matrix.jq \
packages/data/data/texlive-versions.json |
tee -a "${GITHUB_OUTPUT}"
env:
os: ${{ inputs.os }}
version: ${{ inputs.version }}
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ jobs:
- name: Setup TeX Live
id: setup
uses: ./
- if: fromJSON(steps.setup.outputs.cache-restored)
- name: Check that a new installation has been made
if: fromJSON(steps.setup.outputs.cache-restored)
run: exit 1
- run: tlmgr version
- name: Set output
Expand All @@ -37,7 +38,12 @@ jobs:
MATRIX_OS: ${{ matrix.os }}
restore-cache:
needs: save-cache
if: ${{ !cancelled() }}
if: |
!cancelled() && (
needs.save-cache.outputs.ubuntu ||
needs.save-cache.outputs.windows ||
needs.save-cache.outputs.macos
)
strategy:
matrix:
os:
Expand All @@ -53,7 +59,8 @@ jobs:
- name: Setup TeX Live
id: setup
uses: ./
- if: ${{ !fromJSON(steps.setup.outputs.cache-hit) }}
- name: Check that the cache is exactly matched
if: ${{ !fromJSON(steps.setup.outputs.cache-hit) }}
run: exit 1
- run: tlmgr version
delete-caches:
Expand All @@ -68,7 +75,7 @@ jobs:
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Install
- name: Install package
run: >-
npm ci
--omit=dev
Expand All @@ -78,8 +85,8 @@ jobs:
- uses: actions/github-script@v7
with:
script: |
const args = { context, core, github };
await require('@setup-texlive-action/e2e/delete-caches')(args);
const { deleteCaches } = require('@setup-texlive-action/e2e');
await deleteCaches({ context, core, github });
compile:
strategy:
matrix:
Expand Down
Loading

0 comments on commit 6815e26

Please sign in to comment.