@@ -6,6 +6,8 @@ set -x -e
6
6
DEBUG=$1 # Value is '' or 'debug'
7
7
RUNNER_OS=$2 # ${{ runner.os }} is Linux, Windiws, maxOS
8
8
TAG=$3 # For master it's 23.0.999, while for tag it's the tag itself
9
+ NO_REBASE=$4 # Specify this to skip the rebase over the edge branch. Used for local debugging.
10
+
9
11
prefix=/tmp/ADALIB_DIR
10
12
11
13
if [ $RUNNER_OS = Windows ]; then
@@ -29,7 +31,7 @@ echo PATH=$PATH
29
31
BRANCH=master
30
32
31
33
# Rebase PR on edge branch
32
- if [[ ${GITHUB_REF##*/ } != 2* .[0-9]* .[0-9]* ]]; then
34
+ if [[ -z " $NO_REBASE " && ${GITHUB_REF##*/ } != 2* .[0-9]* .[0-9]* ]]; then
33
35
git config user.email " ` git log -1 --pretty=format:' %ae' ` "
34
36
git config user.name " ` git log -1 --pretty=format:' %an' ` "
35
37
git config core.autocrlf
@@ -96,7 +98,14 @@ if [ $RUNNER_OS = macOS ]; then
96
98
fi
97
99
98
100
if [ " $DEBUG " != " debug" ]; then
99
- ALS=` ls integration/vscode/ada/* /ada_language_server* `
101
+ # Here it's better to match an exact extension rather than mathing
102
+ # ada_language_server* because when running locally, the latter could match
103
+ # ada_language_server.dSYM from a previous run if it exists.
104
+ if [ $RUNNER_OS = Windows ]; then
105
+ ALS=` ls integration/vscode/ada/* /ada_language_server.exe`
106
+ else
107
+ ALS=` ls integration/vscode/ada/* /ada_language_server`
108
+ fi
100
109
cd ` dirname $ALS `
101
110
ALS=` basename ${ALS} `
102
111
if [ $RUNNER_OS = macOS ]; then
0 commit comments