|
12 | 12 | matrix: |
13 | 13 | # ref: https://github.com/actions/runner-images |
14 | 14 | os: [ubuntu-22.04, macos-13, windows-latest] |
15 | | - lua_version: [5.4.7, 5.3.6, 5.1.5] |
| 15 | + lua_version: [5.4.7, 5.3.6] |
16 | 16 | runs-on: ${{ matrix.os }} |
17 | 17 | steps: |
18 | 18 | - uses: actions/checkout@v4 |
@@ -98,26 +98,27 @@ jobs: |
98 | 98 | mingw-w64-x86_64-make |
99 | 99 |
|
100 | 100 | - name: Verify GCC and Make installation (Windows) |
101 | | - shell: powershell |
| 101 | + shell: pwsh |
102 | 102 | if: runner.os == 'Windows' |
103 | 103 | run: | |
104 | 104 | gcc --version |
105 | 105 | make --version |
106 | 106 |
|
107 | 107 | - name: install Lua by vfox-lua plugin (Windows) |
108 | 108 | if: runner.os == 'Windows' |
| 109 | + shell: pwsh |
109 | 110 | env: |
110 | 111 | LUA_VERSION: "${{ matrix.lua_version }}" |
111 | 112 | run: | |
112 | 113 | vfox install "lua@$env:LUA_VERSION" |
113 | | - vfox use -g "lua@$env:LUA_VERSION" |
| 114 | + vfox use "lua@$env:LUA_VERSION" |
114 | 115 | Invoke-Expression "$(vfox activate pwsh)" |
115 | 116 | echo "===============PATH===============" |
116 | 117 | echo $env:PATH |
117 | 118 | echo "===============PATH===============" |
118 | 119 | Invoke-Expression "$(vfox activate pwsh)" |
119 | | - $result = lua.exe -v |
120 | | - if ($result -match "Lua @$env:LUA_VERSION") { |
| 120 | + $result=(lua.exe -v) |
| 121 | + if ($result -match "Lua $env:LUA_VERSION") { |
121 | 122 | Write-Output "lua@$env:LUA_VERSION installed successfully!" |
122 | 123 | } else { |
123 | 124 | Write-Output "lua@$env:LUA_VERSION installed failed!" |
|
0 commit comments