-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to LUAROCKS_VERSION=3.11.1, add Linux x86_64 Build and upgrade actions.
- Loading branch information
1 parent
cac326e
commit 7eaf541
Showing
6 changed files
with
101 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
FROM debian:buster-slim | ||
|
||
# Install general dependencies | ||
RUN apt-get update -q -y | ||
RUN apt-get install -q -y lua5.1 \ | ||
liblua5.1-0-dev \ | ||
build-essential \ | ||
libreadline-dev \ | ||
wget \ | ||
zip | ||
RUN apt update -q -y && \ | ||
apt install -q -y lua5.1 liblua5.1-0-dev build-essential libreadline-dev wget zip | ||
|
||
# Fetch and build luarocks-3.3.1 | ||
RUN wget https://luarocks.org/releases/luarocks-3.3.1.tar.gz && \ | ||
tar zxpf luarocks-3.3.1.tar.gz | ||
RUN cd luarocks-3.3.1 && \ | ||
# Fetch and build luarocks | ||
ARG LUAROCKS_VERSION=3.11.1 | ||
RUN wget https://luarocks.org/releases/luarocks-${LUAROCKS_VERSION}.tar.gz && \ | ||
tar zxpf luarocks-${LUAROCKS_VERSION}.tar.gz && \ | ||
rm luarocks-${LUAROCKS_VERSION}.tar.gz | ||
RUN cd luarocks-${LUAROCKS_VERSION} && \ | ||
./configure && \ | ||
make && make install | ||
|
||
# Copy and setup entrypoint | ||
COPY build.sh /love-build/build.sh | ||
COPY module_loader.lua /love-build/module_loader.lua | ||
ENTRYPOINT ["/love-build/build.sh"] | ||
|
||
# docker build . -t love-build --no-cache | ||
# docker run -it -v./tests:/tmp/tests -w /love-build --entrypoint /bin/bash love-build | ||
# INPUT_APP_NAME=hello_word INPUT_LOVE_VERSION=11.5 INPUT_SOURCE_DIR=/tmp/tests/hello_world INPUT_RESULT_DIR=/tmp/result GITHUB_OUTPUT=/tmp/out /love-build/build.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters