Skip to content

tmp s

tmp s #10

Workflow file for this run

name: Build
on:
push:
pull_request:
jobs:
build:
name: Test build on ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ]
platform: [ "ubuntu-20.04", "macos-11", "windows-2022" ]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Prepare ‘lua’
uses: ilammy/msvc-dev-cmd@v1
- name: Setup ‘lua’
uses: leafo/gh-actions-lua@v10
with:
luaVersion: ${{ matrix.luaVersion }}
- name: Setup ‘luarocks’
uses: hishamhm/gh-actions-luarocks@master
- name: Make and install
run: |
luarocks make -- luasocket-scm-3.rockspec
env:
DEBUG: DEBUG
- name: Run regression tests
run: |
bash -c "
LUA=$(which lua || which luajit)
cd test
$LUA hello.lua
$LUA testsrvr.lua > /dev/null &
$LUA testclnt.lua
$LUA stufftest.lua
$LUA excepttest.lua
$LUA test_bind.lua
$LUA test_getaddrinfo.lua
$LUA ltn12test.lua
$LUA mimetest.lua
$LUA urltest.lua
$LUA test_socket_error.lua
kill %1"