luasocket/.github/workflows/build.yml

51 lines
1.4 KiB
YAML
Raw Normal View History

2022-03-24 21:32:57 +01:00
name: Build
on:
push:
branches:
- master
pull_request:
jobs:
build:
name: Test ${{ matrix.luaVersion }} on ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
2022-07-27 08:55:54 +02:00
luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ]
platform: [ "ubuntu-22.04", "macos-11", "windows-2022" ]
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout
uses: actions/checkout@v4
2023-10-27 19:31:18 +02:00
- name: Setup msvc
if: ${{ startsWith(matrix.platform, 'windows') && !startsWith(matrix.luaVersion, 'luajit') }}
2023-10-27 19:31:18 +02:00
uses: ilammy/msvc-dev-cmd@v1
- name: Setup lua
2023-10-27 19:31:18 +02:00
uses: leso-kn/gh-actions-lua@v11-staging
with:
luaVersion: ${{ matrix.luaVersion }}
- name: Setup luarocks
2023-10-27 19:31:18 +02:00
uses: hishamhm/gh-actions-luarocks@master
- name: Make and install
run: |
luarocks make -- luasocket-scm-3.rockspec
2023-10-27 19:31:18 +02:00
env:
DEBUG: DEBUG
- name: Run regression tests
2023-10-27 19:31:18 +02:00
shell: bash
run: |
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