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
|
||||
shell: bash
|
||||
run: luarocks install lua-path
|
||||
- name: Install luafilesystem
|
||||
shell: bash
|
||||
run: luarocks install luafilesystem
|
||||
- name: Build
|
||||
working-directory: ${{env.GITHUB_WORKSPACE}}
|
||||
shell: bash
|
||||
|
|
12
build.lua
12
build.lua
|
@ -23,15 +23,9 @@ local compiler_options = args.options or ''
|
|||
|
||||
-- Clean the build files if needed
|
||||
function rmdir(p)
|
||||
path.each(path.join(p,"*"), function(P)
|
||||
path.remove(P)
|
||||
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.each(path.join(p,"*"), function(P) path.remove(P) end,
|
||||
{param = "f",delay = true,recurse = true,reverse = true})
|
||||
path.remove(p)
|
||||
end
|
||||
if is_clean then
|
||||
print('Cleaning files..')
|
||||
|
|
|
@ -48,8 +48,9 @@ For executing the script you will need lua and some lua dependencies that
|
|||
you can install with luarocks:
|
||||
|
||||
```
|
||||
# luarocks install lua-path
|
||||
# luarocks install argparse
|
||||
$ luarocks install luafilesystem
|
||||
$ luarocks install lua-path
|
||||
$ luarocks install argparse
|
||||
```
|
||||
|
||||
### Building
|
||||
|
|
Loading…
Reference in New Issue