From 4deeb409ea07d94d4e47949b489d536985794102 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 21 Nov 2024 23:17:57 +0800 Subject: [PATCH] update lua --- .github/workflows/linux.yml | 6 +++++- .github/workflows/macos.yml | 6 +++++- .github/workflows/windows.yml | 21 ++++++++++++++------- README.md | 11 ----------- README_zh.md | 11 ----------- 5 files changed, 24 insertions(+), 31 deletions(-) diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index 9902540..c35deb5 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -11,10 +11,14 @@ jobs: strategy: matrix: os: [ubuntu-latest] - luaVersion: ["5.4.1", "5.1.5", "luajit-2.1.0-beta3"] + luaVersion: ["5.4.1", "5.1.5", "luajit-openresty"] luarocksVersion: ["3.5.0", "3.0.1"] runs-on: ${{ matrix.os }} + concurrency: + group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Linux-${{ matrix.luaVersion }}-${{ matrix.luarocksVersion }} + cancel-in-progress: true + steps: - uses: actions/checkout@v2 - uses: leafo/gh-actions-lua@v8 diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index 84980d2..f2dc575 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -11,10 +11,14 @@ jobs: strategy: matrix: os: [macos-latest] - luaVersion: ["5.4.1", "5.1.5", "luajit-2.1.0-beta3"] + luaVersion: ["5.4.1", "5.1.5", "luajit-openresty"] luarocksVersion: ["3.5.0", "3.0.1"] runs-on: ${{ matrix.os }} + concurrency: + group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-MacOS-${{ matrix.luaVersion }}-${{ matrix.luarocksVersion }} + cancel-in-progress: true + steps: - uses: actions/checkout@v2 - uses: leafo/gh-actions-lua@v8 diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 8fc6ba3..b70cfd5 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -11,12 +11,17 @@ jobs: strategy: matrix: os: [windows-latest] - luaVersion: ["5.4.1"] + luaVersion: ["5.3.1"] runs-on: ${{ matrix.os }} + concurrency: + group: ${{ github.ref }}-${{ github.base_ref }}-${{ github.head_ref }}-Windows-${{ matrix.luaVersion }} + cancel-in-progress: true + steps: - uses: actions/checkout@v2 - - uses: leafo/gh-actions-lua@v8 + #- uses: ilammy/msvc-dev-cmd@v1 + #- uses: leafo/gh-actions-lua@v10 with: luaVersion: ${{ matrix.luaVersion }} @@ -34,19 +39,21 @@ jobs: $Env:XMAKE_PROGRAM_DIR = $(Resolve-Path ./xmakesrc/xmake) Set-Item -Path Env:Path -Value ($Env:XMAKE_PROGRAM_DIR + ";" + $Env:Path) xmake --version - Invoke-WebRequest "https://luarocks.github.io/luarocks/releases/luarocks-3.11.1-windows-64.zip" -UseBasicParsing -OutFile ./luarocks.zip + #Invoke-WebRequest "https://luarocks.github.io/luarocks/releases/luarocks-3.11.1-windows-64.zip" -UseBasicParsing -OutFile ./luarocks.zip + #Expand-Archive ./luarocks.zip -DestinationPath ./luarocks + #Push-Location ./luarocks/luarocks-3.11.1-windows-64 + Invoke-WebRequest "https://github.com/xmake-mirror/luarocks/releases/download/v3.5.0/luarocks-all-3.5.0-windows-64.zip" -UseBasicParsing -OutFile ./luarocks.zip Expand-Archive ./luarocks.zip -DestinationPath ./luarocks - Push-Location ./luarocks/luarocks-3.11.1-windows-64 - ./luarocks.exe install --local --verbose ../rockspecs/example1-1.0-1.rockspec + ./luarocks.exe install --local ../rockspecs/example1-1.0-1.rockspec xmake l os.files "C:/Users/runneradmin/AppData/Roaming/luarocks/**" #$Env:LUA_PATH = $(Resolve-Path C:/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.3/example1/test.lua) #./bin/lua -e "print(require('example1.test'))" $Env:LUA_CPATH = $(Resolve-Path C:/Users/runneradmin/AppData/Roaming/luarocks/lib/lua/5.3/example1/hello.dll) - lua -e "print(require('example1.hello'))" + ./bin/lua -e "print(require('example1.hello'))" ./luarocks install --local ../rockspecs/example2-1.0-1.rockspec xmake l os.files "C:/Users/runneradmin/AppData/Roaming/luarocks/**" #$Env:LUA_PATH = $(Resolve-Path C:/Users/runneradmin/AppData/Roaming/luarocks/share/lua/5.3/example2/test.lua) #./bin/lua -e "print(require('example2.test'))" $Env:LUA_CPATH = $(Resolve-Path C:/Users/runneradmin/AppData/Roaming/luarocks/lib/lua/5.3/example2/hello.dll) - lua -e "print(require('example2.hello'))" + ./bin/lua -e "print(require('example2.hello'))" diff --git a/README.md b/README.md index 2bc6e4f..9d15bab 100644 --- a/README.md +++ b/README.md @@ -5,17 +5,6 @@

luarocks-build-xmake

-
- - github-ci - - - github-ci - - - github-ci - -
Reddit diff --git a/README_zh.md b/README_zh.md index 2a25c7a..d09294c 100644 --- a/README_zh.md +++ b/README_zh.md @@ -5,17 +5,6 @@

luarocks-build-xmake

-
- - github-ci - - - github-ci - - - github-ci - -
Reddit