Skip to content

Latest OpenResty fails to compile on windows #36

@leso-kn

Description

@leso-kn

The latest version of openresty fails to compile on windows. This is due to the Makefile expecting the shell to be cmd on windows, but gh-actions-lua currently sets it to bash, resulting in the following error:

HOSTLINK  host/minilua.exe
VERSION   luajit.h
DYNASM    host/buildvm_arch.h
/usr/bin/bash: -c: line 1: syntax error near unexpected token `('
/usr/bin/bash: -c: line 1: `if exist ..\.git ( git show -s --format=%%ct >luajit_relver.txt ) else ( type ..\.relver >luajit_relver.txt )'
make[1]: *** [Makefile:677: luajit.h] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory 'D:/a/_temp/.lua-build/luajit2/src'
make: *** [Makefile:125: default] Error 2
Error: Failed to install Lua: Error: The process 'C:\mingw64\bin\make.exe' failed with exit code 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions