From 345735b7913502d258d58ab836f17352e8a5ecc9 Mon Sep 17 00:00:00 2001 From: Rafal Chlodnicki Date: Sat, 26 Sep 2026 21:25:27 +0200 Subject: [PATCH] Print auto-detected architecture when `sublime-text-arch` not set --- actions/setup/action.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/actions/setup/action.yaml b/actions/setup/action.yaml index 800d11ee..08edd100 100644 --- a/actions/setup/action.yaml +++ b/actions/setup/action.yaml @@ -95,7 +95,17 @@ runs: exit 1 esac echo "SUBLIME_TEXT_PACKAGES=$STP" >> $GITHUB_ENV - echo "SUBLIME_TEXT_ARCH=${{ inputs.sublime-text-arch }}" >> $GITHUB_ENV + ST_ARCH="${{ inputs.sublime-text-arch }}" + if [ -n "$ST_ARCH" ]; then + echo "Sublime Text architecture: $ST_ARCH (specified by input)" + else + case "${{ runner.arch }}" in + ARM64) ST_ARCH=arm64 ;; + *) ST_ARCH=x64 ;; + esac + echo "Sublime Text architecture: $ST_ARCH (autodetected from runner arch ${{ runner.arch }})" + fi + echo "SUBLIME_TEXT_ARCH=$ST_ARCH" >> $GITHUB_ENV echo "SUBLIME_TEXT_VERSION=${{ inputs.sublime-text-version }}" >> $GITHUB_ENV shell: bash - name: Setup Graphical User Interface