-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (57 loc) · 2.18 KB
/
Copy pathwindows-build.yml
File metadata and controls
63 lines (57 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build Windows
on: [push, pull_request]
jobs:
build-win:
name: Build for Windows
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
arch: [x64]
steps:
- uses: actions/checkout@v4
with:
submodules: false # Don't auto-checkout, handle manually
- name: Download Submodules
run: |
Write-Host "Using git submodule update"
git submodule update --init --recursive
shell: powershell
- name: Verify Submodules
run: |
Write-Host "Checking submodule directories..."
if (Test-Path "Engine/ThirdParty/SDL/CMakeLists.txt") {
Write-Host "SDL submodule found"
} else {
Write-Host "SDL submodule missing"
if (Test-Path "Engine/ThirdParty/") {
Get-ChildItem "Engine/ThirdParty/" -ErrorAction SilentlyContinue
} else {
Write-Host "Engine/ThirdParty directory does not exist"
}
}
shell: powershell
- name: Clean Build Directory
run: |
if (Test-Path "build") {
Remove-Item "build" -Recurse -Force
Write-Host "Cleaned existing build directory"
}
shell: powershell
- name: Run Build Script
run: |
cd config
config-win.bat ${{ matrix.arch }}
shell: cmd
env:
CI: true
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: build-win-${{ matrix.arch }}
path: |
build/win-${{ matrix.arch }}/bin/**/*.exe
build/win-${{ matrix.arch }}/bin/**/*.dll
build/win-${{ matrix.arch }}/lib/**/*.lib
build/win-${{ matrix.arch }}/Release/**/*.exe
build/win-${{ matrix.arch }}/Release/**/*.dll