From 724eedf7e93550a24be46e2aba780358cbce5bef Mon Sep 17 00:00:00 2001 From: Samkist Date: Fri, 3 Jun 2022 02:30:19 -0400 Subject: [PATCH] try different directory with ci --- .github/workflows/ci.yml | 2 +- scripts/compiler.lua | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cd55ea..2db0276 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,7 +43,7 @@ jobs: run: luarocks install luafilesystem - name: compile-basalt - run: lua ${{ github.workspace }}/scripts/compiler.lua + run: cd ${{ github.workspace }} && lua scripts/compiler.lua - name: Upload artifact uses: actions/upload-artifact@v2 with: diff --git a/scripts/compiler.lua b/scripts/compiler.lua index cea03b7..e01b32c 100644 --- a/scripts/compiler.lua +++ b/scripts/compiler.lua @@ -38,5 +38,7 @@ end local sourceFileName = "basalt.lua" local sourceFile = io.open(buildPath .. sourceFileName, "w") + + sourceFile:write(compiledSource) sourceFile:close() \ No newline at end of file