Skip to content
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ jobs:
matrix:
st-version: [3, 4]
os: ["ubuntu-latest", "macOS-latest", "windows-latest"]
include:
- st-version: 4
os: "ubuntu-26.04-arm"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v6
Expand Down
8 changes: 5 additions & 3 deletions actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ inputs:
required: true
default: 4
sublime-text-arch:
description: Sublime Text Version Arch. It could be x32 for Sublime Text 3.
required: true
default: x64
description: >-
Sublime Text build architecture: x64, arm64 (Linux, Sublime Text 4) or x32 (Sublime Text 3).
Detected from the runner if empty.
required: false
default: ''
install-package:
description: Whether to install the checked out package.
required: true
Expand Down
5 changes: 5 additions & 0 deletions actions/setup/install_sublime_text.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ param(

$ErrorActionPreference = 'stop'

# Sublime Text has no Windows arm64 build; x64 runs under emulation there.
if (-not $Arch) {
$Arch = 'x64'
}

$private:MaxRetries = 20
if ($Version -ge 4) {
$private:SublimeTextUrl = "http://www.sublimetext.com/download_thanks"
Expand Down
9 changes: 6 additions & 3 deletions actions/setup/install_sublime_text.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ if [ -z $SUBLIME_TEXT_VERSION ]; then
fi

if [ -z $SUBLIME_TEXT_ARCH ]; then
SUBLIME_TEXT_ARCH=x64
case "$(uname -m)" in
aarch64|arm64) SUBLIME_TEXT_ARCH=arm64 ;;
*) SUBLIME_TEXT_ARCH=x64 ;;
esac
fi

if [ $SUBLIME_TEXT_VERSION -ge 4 ] && [ "$SUBLIME_TEXT_ARCH" != "x64" ]; then
if [ $SUBLIME_TEXT_VERSION -ge 4 ] && [ "$SUBLIME_TEXT_ARCH" != "x64" ] && [ "$SUBLIME_TEXT_ARCH" != "arm64" ]; then
echo "wrong value of $SUBLIME_TEXT_ARCH for Sublime Text version $SUBLIME_TEXT_VERSION"
exit 1
fi
Expand Down Expand Up @@ -126,7 +129,7 @@ else
echo "installing sublime text $SUBLIME_TEXT_VERSION"
for i in {1..20}; do
if [ $SUBLIME_TEXT_VERSION -ge 4 ]; then
URL=$(curl -s "$STWEB" | sed -n 's/.*href="\([^"]*_x64\.tar\.xz\)".*/\1/p')
URL=$(curl -s "$STWEB" | sed -n "s/.*href=\"\([^\"]*_${SUBLIME_TEXT_ARCH}\.tar\.xz\)\".*/\1/p")
else
if [ "$SUBLIME_TEXT_ARCH" = "x64" ]; then
URL=$(curl -s "$STWEB" | sed -n 's/.*href="\([^"]*x64\.tar\.bz2\)".*/\1/p')
Expand Down
Loading