Build optimization

- Remove appveyor
- Added docker compose for building docs locally
- Added manuall run of GitHub Action builds
- Added paths to trigger builds
This commit is contained in:
kaltokri
2023-10-27 17:01:51 +02:00
parent d8c2b8b719
commit b0c8f05f38
7 changed files with 71 additions and 87 deletions

View File

@@ -0,0 +1,13 @@
FROM nickblah/lua:5.1.5-luarocks-ubuntu
RUN apt-get -qq update
RUN apt-get -qq install tree
RUN apt-get -qq install build-essential
RUN apt-get -qq install git
RUN luarocks install markdown 0.32-2
RUN luarocks install penlight 1.11.0-1
RUN luarocks install metalua-compiler 0.7.3-1
RUN luarocks install metalua-parser 0.7.3-2
RUN luarocks install checks
COPY start.sh /start.sh
RUN chmod +x /start.sh

View File

@@ -0,0 +1,14 @@
version: "3.5"
services:
lua:
image: moose/build-docs
build:
context: .
dockerfile: Dockerfile
container_name: moose-build-docs
volumes:
- ../../:/moose
stdin_open: true
tty: true
command: /bin/bash -c /start.sh

View File

@@ -0,0 +1,24 @@
#!/bin/sh
# Prepare environment
cd /moose/
mkdir -p build/tools
mkdir -p build/doc
# Checkout luadocumentor
cd /moose/build/tools
if [ ! -f /moose/build/tools/luadocumentor/luadocumentor.lua ]
then
git clone --branch patch-1 --single-branch https://github.com/Applevangelist/luadocumentor.git
fi
# Run luadocumentor
cd /moose/build/tools/luadocumentor
lua luadocumentor.lua -d /moose/build/doc '/moose/Moose Development/Moose'
# Copy generated files in the MOOSE_DOCS repo if it is already there
if [ -d /moose/build/MOOSE_DOCS/Documentation ]; then
rm -rf /moose/build/MOOSE_DOCS/Documentation
mkdir -p /moose/build/MOOSE_DOCS/Documentation
cp /moose/build/doc/* /moose/build/MOOSE_DOCS/Documentation/
fi