Skip to content

Commit 313962f

Browse files
authored
save lua in /temp/ (#695)
* save lua in /temp/ * update directive name * typos
1 parent 836bacd commit 313962f

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,16 @@ jobs:
1818

1919
- name: Install lua
2020
run: |
21-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://www.lua.org/ftp/lua-5.4.7.tar.gz ; exit 0"
22-
tar xzf lua-5.4.7.tar.gz
21+
bash -c "curl -Z --retry 5 --connect-timeout 30 --location --create-dirs --output-dir temp --remote-name-all https://www.lua.org/ftp/lua-5.4.7.tar.gz https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip ; exit 0"
22+
tar -xzf temp/lua-5.4.7.tar.gz
2323
move lua-5.4.7 lua
2424
2525
- name: Premake
2626
run: |
27-
bash -c "curl --retry 5 --connect-timeout 30 --location --remote-header-name --remote-name https://github.com/premake/premake-core/releases/download/v5.0.0-beta2/premake-5.0.0-beta2-windows.zip ; exit 0"
28-
7z x premake-5.0.0-beta2-windows.zip
29-
move premake\lua.lua lua\premake5.lua
30-
move premake\dll.lua dll.lua
31-
.\premake5.exe vs2022 --file=dll.lua
27+
7z x temp/premake-5.0.0-beta2-windows.zip -opremake-5
28+
move premake/lua.lua lua/premake5.lua
29+
move premake/dll.lua dll.lua
30+
./premake-5/premake5.exe vs2022 --file=dll.lua
3231
3332
- name: Add msbuild to PATH
3433
uses: microsoft/setup-msbuild@v2

.gitignore

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
.vscode/
1+
/.vscode/
2+
/build/
3+
/lua/
4+
/temp/
5+
/premake-5/
26
/premake5.exe
3-
/build
4-
/lua

0 commit comments

Comments
 (0)