Deploy #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy | |
on: | |
workflow_dispatch: | |
jobs: | |
windows: | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v1 | |
with: | |
fetch-depth: 1 | |
- name: make dirs | |
run: | | |
mkdir plugins | |
mkdir projects\3rdparty | |
mkdir projects\itch_io | |
- name: fetch procedural geometry plugin | |
working-directory: plugins | |
run: | | |
git.exe clone https://github.com/nem0/lumixengine_procedural_geom.git procedural_geom | |
- name: fetch shader_editor plugin | |
working-directory: plugins | |
run: | | |
git.exe clone https://github.com/nem0/lumixengine_shader_editor.git shader_editor | |
- name: fetch maps plugin | |
working-directory: plugins | |
run: | | |
git.exe clone https://github.com/nem0/lumixengine_maps.git maps | |
- name: fetch dx plugin | |
working-directory: plugins | |
run: | | |
git.exe clone https://github.com/nem0/lumixengine_dx.git dx | |
- name: fetch marketplace plugin | |
working-directory: plugins | |
run: | | |
git.exe clone https://github.com/nem0/lumixengine_market.git market | |
- name: download physx | |
working-directory: projects\3rdparty | |
run: | | |
git.exe clone --depth=1 https://github.com/nem0/PhysX.git physx | |
- name: download Luau | |
working-directory: projects\3rdparty | |
run: | | |
git.exe clone --depth=1 https://github.com/nem0/luau.git luau | |
- name: make dx11 project | |
working-directory: projects | |
run: | | |
./bin/genie.exe --force-build-physx --force-build-luau --with-app vs2022 | |
- name: get butler | |
working-directory: projects | |
run: | | |
curl -L -o butler.zip https://broth.itch.ovh/butler/windows-amd64/LATEST/archive/default | |
7z x butler.zip | |
- name: build dx11 engine | |
working-directory: projects | |
shell: cmd | |
run: | | |
"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" tmp/vs2022/LumixEngine.sln /p:Configuration=RelWithDebInfo | |
- name: Publish DX11 version | |
working-directory: projects | |
run: | | |
copy tmp\vs2022\bin\RelWithDebInfo\studio.exe itch_io\ | |
copy tmp\vs2022\bin\RelWithDebInfo\app.exe itch_io\ | |
copy .itch.toml itch_io\ | |
xcopy /E /Y ..\data itch_io | |
./butler.exe push itch_io mikulasflorek/lumix-engine:win-64-dx | |
env: | |
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: itch-io-dx | |
path: projects/itch_io | |
- name: make gl project with plugins | |
working-directory: projects | |
run: | | |
./bin/genie.exe --force-build-physx --force-build-luau --nodx --with-app vs2022 | |
- name: build gl engine | |
working-directory: projects | |
shell: cmd | |
run: | | |
"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/MSBuild/Current/Bin/MSBuild.exe" tmp/vs2022/LumixEngine.sln /p:Configuration=RelWithDebInfo | |
- name: Publish GL version | |
working-directory: projects | |
run: | | |
copy tmp\vs2022\bin\RelWithDebInfo\studio.exe itch_io\ | |
copy tmp\vs2022\bin\RelWithDebInfo\app.exe itch_io\ | |
./butler.exe push itch_io mikulasflorek/lumix-engine:win-64-gl | |
env: | |
BUTLER_API_KEY: ${{ secrets.BUTLER_API_KEY }} |