File tree 2 files changed +22
-1
lines changed
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 19
19
strategy :
20
20
fail-fast : false
21
21
matrix :
22
+ version :
23
+ - 5.1.5
24
+ - 5.2.4
25
+ - 5.3.6
26
+ - 5.4.6
22
27
os :
23
28
- macos-latest
24
29
- ubuntu-latest
41
46
uses : asdf-vm/actions/plugin-test@v1
42
47
with :
43
48
command : lua -v
49
+ version : ${{ matrix.version }}
44
50
45
51
lint :
46
52
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -113,7 +113,11 @@ get_target() {
113
113
elif [ " ${ASDF_LUA_LINUX_READLINE-} " == " 1" ]; then
114
114
echo " linux-readline"
115
115
else # Otherwise let the lua Makefile guess for us
116
- echo " guess"
116
+ if less_than_version_5_4x " $version " ; then
117
+ echo " linux"
118
+ else
119
+ echo " guess"
120
+ fi
117
121
fi
118
122
}
119
123
@@ -150,4 +154,15 @@ version_5_2x_or_greater() {
150
154
fi
151
155
}
152
156
157
+ less_than_version_5_4x () {
158
+ version=$1
159
+ IFS=' .' read -ra version_array <<< " $version"
160
+ major_minor_version=" ${version_array[0]} 0${version_array[1]} "
161
+ if (( "$major_minor_version " < 504 )) ; then
162
+ return 0
163
+ else
164
+ return 1
165
+ fi
166
+ }
167
+
153
168
install_lua " $ASDF_INSTALL_TYPE " " $ASDF_INSTALL_VERSION " " $ASDF_INSTALL_PATH " " $ASDF_DOWNLOAD_PATH "
You can’t perform that action at this time.
0 commit comments