2020-08-22 21:04:57 +00:00
|
|
|
name: 🏁 Windows Builds
|
2020-07-20 22:36:22 +00:00
|
|
|
on: [push, pull_request]
|
|
|
|
|
2020-10-09 20:18:51 +00:00
|
|
|
# Global Settings
|
2020-07-20 22:36:22 +00:00
|
|
|
# SCONS_CACHE for windows must be set in the build environment
|
|
|
|
env:
|
2022-03-23 07:04:46 +00:00
|
|
|
# Only used for the cache key. Increment version to force clean build.
|
2020-07-24 06:20:42 +00:00
|
|
|
GODOT_BASE_BRANCH: master
|
2021-09-21 19:54:55 +00:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes module_text_server_fb_enabled=yes
|
2020-07-20 22:36:22 +00:00
|
|
|
SCONS_CACHE_MSVC_CONFIG: true
|
|
|
|
|
2021-08-24 18:49:06 +00:00
|
|
|
concurrency:
|
2021-08-25 13:04:05 +00:00
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
|
2021-08-24 18:49:06 +00:00
|
|
|
cancel-in-progress: true
|
|
|
|
|
2020-07-20 22:36:22 +00:00
|
|
|
jobs:
|
2021-09-01 15:26:01 +00:00
|
|
|
build-windows:
|
2020-07-20 22:36:22 +00:00
|
|
|
# Windows 10 with latest image
|
|
|
|
runs-on: "windows-latest"
|
2021-09-01 15:26:01 +00: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-21 19:54:55 +00:00
|
|
|
sconsflags: debug_symbols=no
|
2020-07-20 22:36:22 +00:00
|
|
|
|
|
|
|
steps:
|
2021-09-01 15:26:01 +00: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 19:54:55 +00:00
|
|
|
sconsflags: ${{ env.SCONSFLAGS }} ${{ matrix.sconsflags }}
|
2021-09-01 15:26:01 +00: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: |
|
|
|
|
${{ matrix.bin }} --test
|
|
|
|
|
2021-09-21 19:54:55 +00:00
|
|
|
- name: Prepare artifact
|
|
|
|
run: |
|
|
|
|
Remove-Item bin/* -Include *.exp,*.lib,*.pdb -Force
|
|
|
|
|
2021-09-01 15:26:01 +00:00
|
|
|
- name: Upload artifact
|
|
|
|
uses: ./.github/actions/upload-artifact
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.cache-name }}
|