aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build.yml')
-rw-r--r--.github/workflows/build.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..49c2c73
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,50 @@
1name: Build
2
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9jobs:
10 build:
11 name: Test ${{ matrix.luaVersion }} on ${{ matrix.platform }}
12 strategy:
13 fail-fast: false
14 matrix:
15 luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty" ]
16 platform: [ "ubuntu-22.04", "macos-11", "windows-2022" ]
17 runs-on: ${{ matrix.platform }}
18 steps:
19 - name: Checkout
20 uses: actions/checkout@v4
21 - name: Setup ’msvc’
22 if: ${{ startsWith(matrix.platform, 'windows') && !startsWith(matrix.luaVersion, 'luajit') }}
23 uses: ilammy/msvc-dev-cmd@v1
24 - name: Setup ‘lua’
25 uses: leso-kn/gh-actions-lua@v11-staging
26 with:
27 luaVersion: ${{ matrix.luaVersion }}
28 - name: Setup ‘luarocks’
29 uses: hishamhm/gh-actions-luarocks@master
30 - name: Make and install
31 run: |
32 luarocks make -- luasocket-scm-3.rockspec
33 env:
34 DEBUG: DEBUG
35 - name: Run regression tests
36 shell: bash
37 run: |
38 cd test
39 lua hello.lua
40 lua testsrvr.lua > /dev/null &
41 lua testclnt.lua
42 lua stufftest.lua
43 lua excepttest.lua
44 lua test_bind.lua
45 lua test_getaddrinfo.lua
46 lua ltn12test.lua
47 lua mimetest.lua
48 lua urltest.lua
49 lua test_socket_error.lua
50 kill %1