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.yml45
1 files changed, 45 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
new file mode 100644
index 0000000..17cad49
--- /dev/null
+++ b/.github/workflows/build.yml
@@ -0,0 +1,45 @@
1name: Test build
2
3on:
4 push:
5 branches:
6 - master
7 pull_request:
8
9jobs:
10 build:
11 name: Test build on Linux
12 strategy:
13 fail-fast: false
14 matrix:
15 luaVersion: [ "5.4", "5.3", "5.2", "5.1", "luajit", "luajit-openresty"]
16 platform: [ "ubuntu-20.04", "macos-11" ] # "windows-2022" not supported by gh-actions-lua
17 runs-on: ${{ matrix.platform }}
18 steps:
19 - name: Checkout
20 uses: actions/checkout@v3
21 - name: Setup ‘lua’
22 uses: leafo/gh-actions-lua@v9
23 with:
24 luaVersion: ${{ matrix.luaVersion }}
25 - name: Setup ‘luarocks’
26 uses: leafo/gh-actions-luarocks@v4
27 - name: Make and install
28 run: |
29 export DEBUG=DEBUG
30 luarocks make -- luasocket-scm-3.rockspec
31 - name: Run regression tests
32 run: |
33 cd test
34 lua hello.lua
35 lua testsrvr.lua > /dev/null &
36 lua testclnt.lua
37 lua stufftest.lua
38 lua excepttest.lua
39 lua test_bind.lua
40 lua test_getaddrinfo.lua
41 lua ltn12test.lua
42 lua mimetest.lua
43 lua urltest.lua
44 lua test_socket_error.lua
45 kill %1