2020-08-22 23:04:57 +02:00
|
|
|
name: 🏁 Windows Builds
|
2020-07-24 10:19:19 +02:00
|
|
|
on: [push, pull_request]
|
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:
|
2021-11-05 15:01:27 +01:00
|
|
|
GODOT_BASE_BRANCH: 3.4
|
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:
|
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:
|
|
|
|
sconsflags: ${{ env.SCONSFLAGS }}
|
|
|
|
platform: windows
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|
|
|
|
scons-cache-limit: 3072
|
|
|
|
|
|
|
|
- name: Upload artifact
|
|
|
|
uses: ./.github/actions/upload-artifact
|
|
|
|
with:
|
|
|
|
name: ${{ matrix.cache-name }}
|