From 3ef8f1c9dac994131fa060a7c80b2ccfeabf9131 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:30:47 +0000 Subject: [PATCH 1/4] Initial plan From afcd98dc0ce7efb3ab436f43526b579058ea133c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:33:10 +0000 Subject: [PATCH 2/4] Replace deprecated font-noto-sans-cjk with individual language-specific fonts Co-authored-by: HackingGate <8541644+HackingGate@users.noreply.github.com> --- .github/workflows/test_typst_out_action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_typst_out_action.yml b/.github/workflows/test_typst_out_action.yml index a2b7e480..dee9603f 100644 --- a/.github/workflows/test_typst_out_action.yml +++ b/.github/workflows/test_typst_out_action.yml @@ -142,8 +142,8 @@ jobs: fonts-texgyre \ fonts-cascadia-code elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then - # Install Not Sans CJK fonts - brew install --cask font-noto-sans-cjk + # Install Noto Sans CJK fonts (individual language-specific packages) + brew install --cask font-noto-sans-cjk-tc font-noto-sans-cjk-jp font-noto-sans-cjk-kr # Install other fonts may be used in the template echo "Installing TeX Gyre fonts..." brew search font-tex-gyre | grep '^font-tex-gyre' | xargs -I{} brew install --cask {} From 375b1f591631c51c7ef6ccaf829c8b4bdb229886 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:48:47 +0000 Subject: [PATCH 3/4] Add manual workflow trigger with OS selection support Co-authored-by: HackingGate <8541644+HackingGate@users.noreply.github.com> --- .github/workflows/test_typst_out_action.yml | 38 +++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/test_typst_out_action.yml b/.github/workflows/test_typst_out_action.yml index dee9603f..6df2a70f 100644 --- a/.github/workflows/test_typst_out_action.yml +++ b/.github/workflows/test_typst_out_action.yml @@ -7,6 +7,22 @@ on: pull_request: branches: - main + workflow_dispatch: + inputs: + os: + description: 'Operating System(s) to test on' + required: false + type: choice + default: 'all' + options: + - 'all' + - 'ubuntu-latest' + - 'macos-latest' + - 'windows-latest' + typst_version: + description: 'Typst version to test (leave empty for all versions)' + required: false + type: string permissions: contents: read @@ -52,6 +68,28 @@ jobs: # Parse the TYPST_VERSIONS array ALL_VERSIONS='${{ env.TYPST_VERSIONS }}' + # Handle manual workflow_dispatch + if [ "${{ github.event_name }}" == "workflow_dispatch" ]; then + echo "Manual workflow dispatch detected" + + # Handle OS selection + if [ "${{ github.event.inputs.os }}" == "all" ] || [ -z "${{ github.event.inputs.os }}" ]; then + echo 'os-matrix=["ubuntu-latest", "macos-latest", "windows-latest"]' >> $GITHUB_OUTPUT + else + echo 'os-matrix=["${{ github.event.inputs.os }}"]' >> $GITHUB_OUTPUT + fi + + # Handle typst version selection + if [ -n "${{ github.event.inputs.typst_version }}" ]; then + echo 'typst-version-matrix=["${{ github.event.inputs.typst_version }}"]' >> $GITHUB_OUTPUT + else + # Use all versions from TYPST_VERSIONS + echo "typst-version-matrix=$ALL_VERSIONS" >> $GITHUB_OUTPUT + fi + + exit 0 + fi + if [ "${{ steps.filter.outputs.workflow }}" == "true" ]; then # Check if this is a PR or push event if [ "${{ github.event_name }}" == "pull_request" ]; then From e4235dfe936e8b0033b799106399bef54b7d8534 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 13 Jan 2026 15:50:11 +0000 Subject: [PATCH 4/4] Remove redundant empty check for OS input Co-authored-by: HackingGate <8541644+HackingGate@users.noreply.github.com> --- .github/workflows/test_typst_out_action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test_typst_out_action.yml b/.github/workflows/test_typst_out_action.yml index 6df2a70f..662bf0e8 100644 --- a/.github/workflows/test_typst_out_action.yml +++ b/.github/workflows/test_typst_out_action.yml @@ -73,7 +73,7 @@ jobs: echo "Manual workflow dispatch detected" # Handle OS selection - if [ "${{ github.event.inputs.os }}" == "all" ] || [ -z "${{ github.event.inputs.os }}" ]; then + if [ "${{ github.event.inputs.os }}" == "all" ]; then echo 'os-matrix=["ubuntu-latest", "macos-latest", "windows-latest"]' >> $GITHUB_OUTPUT else echo 'os-matrix=["${{ github.event.inputs.os }}"]' >> $GITHUB_OUTPUT