aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/test.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/test.yml')
-rw-r--r--.github/workflows/test.yml21
1 files changed, 12 insertions, 9 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0ecc63a5..5acc786a 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -2,17 +2,18 @@ name: test
2 2
3on: 3on:
4 push: 4 push:
5 branches: main 5 branches:
6 - main
6 paths-ignore: 7 paths-ignore:
7 - "docs" 8 - "docs"
8 - "**/*.md" 9 - "**/*.md"
9 pull_request: 10 pull_request:
10 branches: '*' 11 branches:
12 - '*'
11 paths-ignore: 13 paths-ignore:
12 - "docs" 14 - "docs"
13 - "**/*.md" 15 - "**/*.md"
14 workflow_dispatch: 16 workflow_dispatch:
15 branches: '*'
16 17
17jobs: 18jobs:
18 ############################################################################## 19 ##############################################################################
@@ -45,7 +46,9 @@ jobs:
45 with: 46 with:
46 luaVersion: ${{ matrix.lua-version }} 47 luaVersion: ${{ matrix.lua-version }}
47 48
48 - uses: leafo/gh-actions-luarocks@v5 49 - uses: luarocks/gh-actions-luarocks@master
50 with:
51 luaRocksVersion: "3.12.2"
49 52
50 - name: 'Setup macOS deps' 53 - name: 'Setup macOS deps'
51 if: ${{ contains(matrix.os, 'macos') }} 54 if: ${{ contains(matrix.os, 'macos') }}
@@ -301,7 +304,7 @@ jobs:
301 # The following env variables 304 # The following env variables
302 # only applies to Visual Studio 305 # only applies to Visual Studio
303 LUAROCKS_DEPS_DIR: c:\external 306 LUAROCKS_DEPS_DIR: c:\external
304 LUAROCKS_DEPS_OPENSSL_VER: "3.4.1" 307 LUAROCKS_DEPS_OPENSSL_VER: "3.5.1"
305 LUAROCKS_DEPS_ZLIB_VER: "1.3.1" 308 LUAROCKS_DEPS_ZLIB_VER: "1.3.1"
306 # The following env variable 309 # The following env variable
307 # applies to both Visual Studio and MinGW-w64 310 # applies to both Visual Studio and MinGW-w64
@@ -332,7 +335,7 @@ jobs:
332 if: ${{ matrix.COMPILER == 'vs' && steps.restore-zlib-tarball.outputs.cache-hit != 'true' }} 335 if: ${{ matrix.COMPILER == 'vs' && steps.restore-zlib-tarball.outputs.cache-hit != 'true' }}
333 run: | 336 run: |
334 curl -o "${{ github.workspace }}\zlib-${{ env.LUAROCKS_DEPS_ZLIB_VER }}.tar.gz" ^ 337 curl -o "${{ github.workspace }}\zlib-${{ env.LUAROCKS_DEPS_ZLIB_VER }}.tar.gz" ^
335 "https://zlib.net/zlib-${{ env.LUAROCKS_DEPS_ZLIB_VER }}.tar.gz" 338 "https://zlib.net/fossils/zlib-${{ env.LUAROCKS_DEPS_ZLIB_VER }}.tar.gz"
336 339
337 - name: Save zlib tarball 340 - name: Save zlib tarball
338 if: ${{ matrix.COMPILER == 'vs' && steps.restore-zlib-tarball.outputs.cache-hit != 'true' }} 341 if: ${{ matrix.COMPILER == 'vs' && steps.restore-zlib-tarball.outputs.cache-hit != 'true' }}
@@ -484,7 +487,7 @@ jobs:
484 } 487 }
485 488
486 if ($installerUrl -eq $null) { 489 if ($installerUrl -eq $null) {
487 throw "Installer not found for version $version"; 490 throw "Installer not found for version ${version}. Please, update OpenSSL to the latest version found at ${jsonUrl}";
488 } 491 }
489 492
490 # Download the installer 493 # Download the installer
@@ -594,11 +597,11 @@ jobs:
594 SET "CURRENT_LUA_BIN=%CURRENT_LUA_DIR%\bin" 597 SET "CURRENT_LUA_BIN=%CURRENT_LUA_DIR%\bin"
595 SET "CURRENT_LUA_INTERPRETER=%CURRENT_LUA_BIN%\lua.exe" 598 SET "CURRENT_LUA_INTERPRETER=%CURRENT_LUA_BIN%\lua.exe"
596 599
597 pip install hererocks && ^ 600 pip install git+https://github.com/luarocks/hererocks && ^
598 hererocks ^ 601 hererocks ^
599 "%CURRENT_LUA_DIRNAME%" ^ 602 "%CURRENT_LUA_DIRNAME%" ^
600 "--${{ matrix.LUAT }}" "${{ matrix.LUAV }}" ^ 603 "--${{ matrix.LUAT }}" "${{ matrix.LUAV }}" ^
601 --luarocks latest ^ 604 --luarocks "3.12.2" ^
602 "--target=${{ matrix.COMPILER }}" 605 "--target=${{ matrix.COMPILER }}"
603 606
604 IF %ERRORLEVEL% NEQ 0 ( 607 IF %ERRORLEVEL% NEQ 0 (