Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading