mirror of
https://github.com/rayaman/multi.git
synced 2026-09-05 07:27:35 -04:00
Testing...
This commit is contained in:
@@ -12,8 +12,8 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
build-type: [Release] # Debug
|
||||
lua: ["lua 5.1", "lua 5.2", "lua 5.3", "luajit 2.1.0-beta3"]
|
||||
os: ["macos-latest", "ubuntu-latest", "windows-2019"]
|
||||
lua: ["lua 5.1", "lua 5.2", "lua 5.3", "lua 5.4", "luajit 2.1.0-beta3"]
|
||||
os: ["ubuntu-latest"]
|
||||
include:
|
||||
- os: macos-latest
|
||||
macos_build_target: 10.0
|
||||
@@ -35,6 +35,7 @@ jobs:
|
||||
|
||||
- name: Install lanes
|
||||
run: |
|
||||
lua -v
|
||||
luarocks insatll lanes
|
||||
|
||||
- name: Run Tests
|
||||
|
||||
@@ -1,48 +0,0 @@
|
||||
name: build & run tests (Win)
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
pull_request:
|
||||
branches: [ master ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
build-type: [Release] # Debug
|
||||
lua: ["lua 5.1", "lua 5.2", "lua 5.3", "luajit 2.0"]
|
||||
os: ["windows-2019"]
|
||||
platform: [
|
||||
{"forLua": "vs_32", "forCMake": "Win32"},
|
||||
{"forLua": "vs_64", "forCMake": "x64"},
|
||||
]
|
||||
exclude:
|
||||
- lua: "luajit 2.0"
|
||||
platform: {"forLua": "vs_32", "forCMake": "Win32"}
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
submodules: recursive
|
||||
- uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.8'
|
||||
- name: Setup env
|
||||
run: |
|
||||
pip install hererocks
|
||||
hererocks lua-pkg --${{ matrix.lua }} -rlatest --target ${{matrix.platform.forLua}}
|
||||
cmd ${{github.workspace}}\lua-pkg\bin\activate
|
||||
|
||||
- name: Configure CMake & build
|
||||
run: |
|
||||
cmake -A ${{matrix.platform.forCMake}} -B ${{github.workspace}}\build -DLUA_INCLUDE_DIR="${{github.workspace}}/lua-pkg/include" -DLUA_LIBRARY="${{github.workspace}}/lua-pkg/lib/lua*.lib"
|
||||
cmake --build ${{github.workspace}}/build --config ${{matrix.build-type}}
|
||||
|
||||
- name: Test
|
||||
working-directory: ${{github.workspace}}/build
|
||||
env:
|
||||
STRESS: 1
|
||||
run: |
|
||||
${{github.workspace}}/lua-pkg/bin/lua ../tests/lua/run_tests
|
||||
Reference in New Issue
Block a user