Skip to content

Commit 5bf04b1

Browse files
committed
generate argparse.h in the workflow
1 parent ef9f892 commit 5bf04b1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/binaries.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ jobs:
2929
awk 'FNR>1' bin/moon > moon.lua
3030
xxd -i moon.lua > bin/binaries/moon.h
3131
32+
- name: Generate argparse.h
33+
run: |
34+
luarocks install argparse --tree=lua_modules
35+
bin/splat.moon -l argparse $(find lua_modules/share/lua -name "*.lua" -exec dirname {} \; | head -1) > argparse.lua
36+
xxd -i argparse.lua > bin/binaries/argparse.h
37+
3238
- name: Upload headers
3339
uses: actions/upload-artifact@v6
3440
with:

0 commit comments

Comments
 (0)