2020-08-22 23:04:57 +02:00
|
|
|
name: 🏁 Windows Builds
|
2020-07-21 00:36:22 +02:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
2020-10-09 22:18:51 +02:00
|
|
|
# Global Settings
|
2020-07-21 00:36:22 +02:00
|
|
|
# SCONS_CACHE for windows must be set in the build environment
|
|
|
|
env:
|
2022-03-23 08:04:46 +01:00
|
|
|
# Only used for the cache key. Increment version to force clean build.
|
2022-03-28 16:09:15 +02:00
|
|
|
GODOT_BASE_BRANCH: master-v2
|
2021-09-21 21:54:55 +02:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes module_text_server_fb_enabled=yes
|
2020-07-21 00:36:22 +02:00
|
|
|
SCONS_CACHE_MSVC_CONFIG: true
|
|
|
|
|
2021-08-24 20:49:06 +02:00
|
|
|
concurrency:
|
2021-08-25 15:04:05 +02:00
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
|
2021-08-24 20:49:06 +02:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-07-21 00:36:22 +02:00
|
|
|
jobs:
|
2021-09-01 17:26:01 +02:00
|
|
|
build-windows:
|
2020-07-21 00:36:22 +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, tests=yes)
|
|
|
|
cache-name: windows-editor
|
|
|
|
target: release_debug
|
|
|
|
tools: true
|
|
|
|
tests: true
|
2022-03-30 10:16:03 +02:00
|
|
|
# Skip debug symbols, they're way too big with MSVC.
|
|
|
|
sconsflags: debug_symbols=no
|
2021-09-01 17:26:01 +02:00
|
|
|
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-21 21:54:55 +02:00
|
|
|
sconsflags: debug_symbols=no
|
2020-07-21 00:36:22 +02:00
|
|
|
|
|
|
|
steps:
|
2021-09-01 17:26:01 +02: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-21 21:54:55 +02:00
|
|
|
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
|
2021-09-01 17:26:01 +02:00
|
|
|
platform: windows
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|
|
|
|
tests: ${{ matrix.tests }}
|
|
|
|
|
|
|
|
# Execute unit tests for the editor
|
|
|
|
- name: Unit tests
|
|
|
|
if: ${{ matrix.tests }}
|
|
|
|
run: |
|
2022-07-02 01:05:20 +02:00
|
|
|
${{ matrix.bin }} --version
|
|
|
|
${{ matrix.bin }} --help
|
2021-09-01 17:26:01 +02:00
|
|
|
${{ matrix.bin }} --test
|
|
|
|
|
2021-09-21 21:54:55 +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 }}
|