mirror of https://github.com/flysand7/ciabatta.git
git add .
This commit is contained in:
parent
bfbe6c82a0
commit
ea78e5de46
|
@ -31,6 +31,9 @@ jobs:
|
||||||
- name: Install lua-path
|
- name: Install lua-path
|
||||||
shell: bash
|
shell: bash
|
||||||
run: luarocks install lua-path
|
run: luarocks install lua-path
|
||||||
|
- name: Install luafilesystem
|
||||||
|
shell: bash
|
||||||
|
run: luarocks install luafilesystem
|
||||||
- name: Build
|
- name: Build
|
||||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
10
build.lua
10
build.lua
|
@ -23,14 +23,8 @@ local compiler_options = args.options or ''
|
||||||
|
|
||||||
-- Clean the build files if needed
|
-- Clean the build files if needed
|
||||||
function rmdir(p)
|
function rmdir(p)
|
||||||
path.each(path.join(p,"*"), function(P)
|
path.each(path.join(p,"*"), function(P) path.remove(P) end,
|
||||||
path.remove(P)
|
{param = "f",delay = true,recurse = true,reverse = true})
|
||||||
end,{
|
|
||||||
param = "f"; -- request full path
|
|
||||||
delay = true; -- use snapshot of directory
|
|
||||||
recurse = true; -- include subdirs
|
|
||||||
reverse = true; -- subdirs at first
|
|
||||||
})
|
|
||||||
path.remove(p)
|
path.remove(p)
|
||||||
end
|
end
|
||||||
if is_clean then
|
if is_clean then
|
||||||
|
|
|
@ -48,8 +48,9 @@ For executing the script you will need lua and some lua dependencies that
|
||||||
you can install with luarocks:
|
you can install with luarocks:
|
||||||
|
|
||||||
```
|
```
|
||||||
# luarocks install lua-path
|
$ luarocks install luafilesystem
|
||||||
# luarocks install argparse
|
$ luarocks install lua-path
|
||||||
|
$ luarocks install argparse
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building
|
### Building
|
||||||
|
|
Loading…
Reference in New Issue