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