2020-08-22 23:04:57 +02:00
|
|
|
name: 🏁 Windows Builds
|
2023-04-04 15:56:53 +02:00
|
|
|
on:
|
|
|
|
workflow_call:
|
2020-07-12 19:06:07 +02:00
|
|
|
|
2020-10-22 13:27:03 +02:00
|
|
|
# Global Settings
|
2020-07-12 19:06:07 +02:00
|
|
|
# SCONS_CACHE for windows must be set in the build environment
|
|
|
|
env:
|
2022-08-25 14:11:54 +02:00
|
|
|
# Only used for the cache key. Increment version to force clean build.
|
2021-04-19 14:37:47 +02:00
|
|
|
GODOT_BASE_BRANCH: 3.x
|
2021-09-01 17:26:01 +02:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no
|
2020-07-12 19:06:07 +02:00
|
|
|
SCONS_CACHE_MSVC_CONFIG: true
|
2021-09-01 17:26:01 +02:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
|
|
|
|
cancel-in-progress: true
|
2020-07-24 10:19:19 +02:00
|
|
|
|
2020-07-12 19:06:07 +02:00
|
|
|
jobs:
|
2021-09-01 17:26:01 +02:00
|
|
|
build-windows:
|
2020-07-12 19:06:07 +02:00
|
|
|
# Windows 10 with latest image
|
|
|
|
runs-on: "windows-latest"
|
2021-09-01 17:26:01 +02:00
|
|
|
name: ${{ matrix.name }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: Editor (target=release_debug, tools=yes)
|
|
|
|
cache-name: windows-editor
|
|
|
|
target: release_debug
|
|
|
|
tools: true
|
|
|
|
bin: "./bin/godot.windows.opt.tools.64.exe"
|
|
|
|
|
|
|
|
- name: Template (target=release, tools=no)
|
|
|
|
cache-name: windows-template
|
|
|
|
target: release
|
|
|
|
tools: false
|
2020-07-12 19:06:07 +02:00
|
|
|
|
|
|
|
steps:
|
2023-09-04 16:05:38 +02:00
|
|
|
- uses: actions/checkout@v4
|
2021-09-01 17:26:01 +02:00
|
|
|
|
|
|
|
- name: Setup Godot build cache
|
|
|
|
uses: ./.github/actions/godot-cache
|
|
|
|
with:
|
|
|
|
cache-name: ${{ matrix.cache-name }}
|
|
|
|
continue-on-error: true
|
|
|
|
|
|
|
|
- name: Setup python and scons
|
|
|
|
uses: ./.github/actions/godot-deps
|
|
|
|
|
2022-11-11 22:23:59 +01:00
|
|
|
- name: Setup MSVC problem matcher
|
|
|
|
uses: ammaraskar/msvc-problem-matcher@master
|
|
|
|
|
2021-09-01 17:26:01 +02:00
|
|
|
- name: Compilation
|
|
|
|
uses: ./.github/actions/godot-build
|
|
|
|
with:
|
|
|
|
sconsflags: ${{ env.SCONSFLAGS }}
|
|
|
|
platform: windows
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|
2022-08-25 14:11:54 +02:00
|
|
|
|
|
|
|
- name: Prepare artifact
|
|
|
|
run: |
|
|
|
|
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force
|
2021-09-01 17:26:01 +02:00
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: ./.github/actions/upload-artifact
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.cache-name }}
|