Skip to content

Commit fd8bb35

Browse files
committed
try running on windows
1 parent 16ae8c0 commit fd8bb35

1 file changed

Lines changed: 38 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22
on: [push]
33

44
jobs:
5-
ljsocket:
5+
ljsocket-linux:
66
runs-on: ubuntu-latest
77
container:
88
image: debian:latest
@@ -24,7 +24,6 @@ jobs:
2424
make
2525
make install
2626
27-
# Create symlink from versioned binary to 'luajit'
2827
LUAJIT_BIN=$(find /usr/local/bin -name 'luajit-*' -type f | head -n 1)
2928
if [ -n "$LUAJIT_BIN" ]; then
3029
ln -sf "$LUAJIT_BIN" /usr/local/bin/luajit
@@ -38,5 +37,42 @@ jobs:
3837
luajit -v
3938
4039
- name: Run tests
40+
run: |
41+
luajit test/run.lua
42+
43+
ljsocket-windows:
44+
runs-on: windows-latest
45+
46+
steps:
47+
- name: checkout the project
48+
uses: actions/checkout@v4
49+
50+
- name: Set up MSYS2
51+
uses: msys2/setup-msys2@v2
52+
with:
53+
msystem: MINGW64
54+
update: true
55+
install: >-
56+
git
57+
make
58+
mingw-w64-x86_64-gcc
59+
60+
- name: Build and install LuaJIT from source
61+
shell: msys2 {0}
62+
run: |
63+
cd /tmp
64+
git clone https://luajit.org/git/luajit.git
65+
cd luajit
66+
make
67+
make install
68+
69+
- name: Verify LuaJIT installation
70+
shell: msys2 {0}
71+
run: |
72+
which luajit
73+
luajit -v
74+
75+
- name: Run tests
76+
shell: msys2 {0}
4177
run: |
4278
luajit test/run.lua

0 commit comments

Comments
 (0)