Skip to content

Commit b976c19

Browse files
committed
few things
- looked at workflows and readme
1 parent fe917ea commit b976c19

4 files changed

Lines changed: 34 additions & 852 deletions

File tree

.github/workflows/main.yml

Lines changed: 22 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Build LuxEngine
22

33
on:
4+
workflow_dispatch:
45
push:
56
branches:
67
- master
@@ -11,16 +12,18 @@ on:
1112
- master
1213
- dev
1314

14-
env:
15+
env:
1516
GITHUB_WORKSPACE: ${{ github.workspace }}
1617
SOLUTION_FILE_PATH: Lux.sln
18+
BUILD_PLATFORM: Mixed Platforms
19+
PREMAKE_GENERATOR: vs2022
1720

1821
permissions:
1922
contents: read
2023

2124
jobs:
2225
build:
23-
runs-on: windows-latest
26+
runs-on: windows-2025
2427
strategy:
2528
fail-fast: false
2629
matrix:
@@ -30,8 +33,7 @@ jobs:
3033
- name: Checkout repository
3134
uses: actions/checkout@v6.0.2
3235
with:
33-
repository: 'starbounded-dev/LuxEngine'
34-
submodules: true
36+
submodules: recursive
3537
lfs: true
3638

3739
- name: Setup Python
@@ -47,22 +49,34 @@ jobs:
4749
install_runtime: true
4850
cache: true
4951
stripdown: true
50-
52+
5153
install_swiftshader: false
5254
install_lavapipe: false
5355

5456
- name: Set up MSBuild
5557
uses: microsoft/setup-msbuild@v3
5658
with:
5759
msbuild-architecture: 'x64'
58-
60+
5961
- name: Setup
6062
working-directory: ${{env.GITHUB_WORKSPACE}}
6163
run: |
6264
cd scripts
63-
python Setup.py vs2026
65+
python Setup.py ${{ env.PREMAKE_GENERATOR }}
66+
67+
- name: Prepare logs
68+
working-directory: ${{env.GITHUB_WORKSPACE}}
69+
run: New-Item -ItemType Directory -Force logs
6470

6571
- name: Build
6672
working-directory: ${{env.GITHUB_WORKSPACE}}
6773
run: |
68-
MSBuild ${{env.SOLUTION_FILE_PATH}} /m /p:Configuration=${{ matrix.configuration }} -fl -flp:logfile=logs/Build-${{ matrix.configuration }}.log
74+
MSBuild "${{ env.SOLUTION_FILE_PATH }}" /m "/p:Configuration=${{ matrix.configuration }}" "/p:Platform=${{ env.BUILD_PLATFORM }}" /fl "/flp:logfile=logs\Build-${{ matrix.configuration }}.log;verbosity=normal"
75+
76+
- name: Upload build logs
77+
if: always()
78+
uses: actions/upload-artifact@v4
79+
with:
80+
name: build-logs-${{ matrix.configuration }}
81+
path: logs/*.log
82+
if-no-files-found: ignore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ Editor/Resources/Cache
3131
Lux.slnx
3232
Editor/App.lsettings
3333
Editor/SandboxProject/Assets/Cache/Thumbnails
34+
Editor/SandboxProject/Assets/AssetRegistry.lzr

0 commit comments

Comments
 (0)