Skip to content

Commit d7eaff6

Browse files
author
Pier-Olivier Boulianne
committed
Update Workflow
trying to make it work, possible dependecies error
1 parent 688fb18 commit d7eaff6

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
working-directory: ${{env.GITHUB_WORKSPACE}}
5555
run: |
5656
cd scripts
57-
python setup.py
57+
python SetupAction.py
5858
5959
- name: Build
6060
working-directory: ${{env.GITHUB_WORKSPACE}}

scripts/SetupAction.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import os
2+
import subprocess
3+
import platform
4+
5+
os.chdir('./../') # Change from devtools/scripts directory to root
6+
7+
print("\nUpdating submodules...")
8+
subprocess.call(["git", "submodule", "update", "--init", "--recursive"])
9+
10+
if platform.system() == "Windows":
11+
print("\nRunning premake...")
12+
subprocess.call([os.path.abspath("./scripts/Win-GenProjects.bat"), "nopause"])
13+
print("\nSetup completed!")
14+
else:
15+
print("StarEngine requires Windows to generate project files.")

0 commit comments

Comments
 (0)