2020-08-23 05:04:57 +08:00
|
|
|
name: 🏁 Windows Builds
|
2020-07-21 06:36:22 +08:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
2020-10-10 04:18:51 +08:00
|
|
|
# Global Settings
|
2020-07-21 06:36:22 +08:00
|
|
|
# SCONS_CACHE for windows must be set in the build environment
|
|
|
|
env:
|
2020-07-24 14:20:42 +08:00
|
|
|
GODOT_BASE_BRANCH: master
|
2021-09-22 03:54:55 +08:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes module_text_server_fb_enabled=yes
|
2020-07-21 06:36:22 +08:00
|
|
|
SCONS_CACHE_MSVC_CONFIG: true
|
|
|
|
|
2021-08-25 02:49:06 +08:00
|
|
|
concurrency:
|
2021-08-25 21:04:05 +08:00
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
|
2021-08-25 02:49:06 +08:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-07-21 06:36:22 +08:00
|
|
|
jobs:
|
2021-09-01 23:26:01 +08:00
|
|
|
build-windows:
|
2020-07-21 06:36:22 +08:00
|
|
|
# Windows 10 with latest image
|
|
|
|
runs-on: "windows-latest"
|
2021-09-01 23:26:01 +08:00
|
|
|
name: ${{ matrix.name }}
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
include:
|
|
|
|
- name: Editor (target=release_debug, tools=yes, tests=yes)
|
|
|
|
cache-name: windows-editor
|
|
|
|
target: release_debug
|
|
|
|
tools: true
|
|
|
|
tests: true
|
|
|
|
bin: "./bin/godot.windows.opt.tools.64.exe"
|
|
|
|
|
|
|
|
- name: Template (target=release, tools=no)
|
|
|
|
cache-name: windows-template
|
|
|
|
target: release
|
|
|
|
tools: false
|
|
|
|
tests: false
|
2021-09-22 03:54:55 +08:00
|
|
|
sconsflags: debug_symbols=no
|
2020-07-21 06:36:22 +08:00
|
|
|
|
|
|
|
steps:
|
2021-09-01 23:26:01 +08:00
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- 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
|
|
|
|
|
|
|
|
- name: Compilation
|
|
|
|
uses: ./.github/actions/godot-build
|
|
|
|
with:
|
2021-09-22 03:54:55 +08:00
|
|
|
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
|
2021-09-01 23:26:01 +08:00
|
|
|
platform: windows
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|
|
|
|
tests: ${{ matrix.tests }}
|
|
|
|
scons-cache-limit: 3072
|
|
|
|
|
|
|
|
# Execute unit tests for the editor
|
|
|
|
- name: Unit tests
|
|
|
|
if: ${{ matrix.tests }}
|
|
|
|
run: |
|
|
|
|
${{ matrix.bin }} --test
|
|
|
|
|
2021-09-22 03:54:55 +08:00
|
|
|
- name: Prepare artifact
|
|
|
|
run: |
|
|
|
|
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force
|
|
|
|
|
2021-09-01 23:26:01 +08:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: ./.github/actions/upload-artifact
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.cache-name }}
|