2020-08-22 21:04:57 +00:00
|
|
|
name: 🏁 Windows Builds
|
2020-07-24 08:19:19 +00:00
|
|
|
on: [push, pull_request]
|
2020-07-12 17:06:07 +00:00
|
|
|
|
2020-10-22 11:27:03 +00:00
|
|
|
# Global Settings
|
2020-07-12 17:06:07 +00:00
|
|
|
# SCONS_CACHE for windows must be set in the build environment
|
|
|
|
env:
|
2022-08-25 12:11:54 +00:00
|
|
|
# Only used for the cache key. Increment version to force clean build.
|
2021-04-19 12:37:47 +00:00
|
|
|
GODOT_BASE_BRANCH: 3.x
|
2021-09-01 15:26:01 +00:00
|
|
|
SCONSFLAGS: verbose=yes warnings=all werror=yes debug_symbols=no
|
2020-07-12 17:06:07 +00:00
|
|
|
SCONS_CACHE_MSVC_CONFIG: true
|
2021-09-01 15:26:01 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ci-${{github.actor}}-${{github.head_ref || github.run_number}}-${{github.ref}}-windows
|
|
|
|
cancel-in-progress: true
|
2020-07-24 08:19:19 +00:00
|
|
|
|
2020-07-12 17:06:07 +00:00
|
|
|
jobs:
|
2021-09-01 15:26:01 +00:00
|
|
|
build-windows:
|
2020-07-12 17:06:07 +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)
|
|
|
|
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 17:06:07 +00:00
|
|
|
|
|
|
|
steps:
|
2022-08-25 12:11:54 +00:00
|
|
|
- uses: actions/checkout@v3
|
2021-09-01 15:26:01 +00: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
|
|
|
|
|
|
|
|
- name: Compilation
|
|
|
|
uses: ./.github/actions/godot-build
|
|
|
|
with:
|
|
|
|
sconsflags: ${{ env.SCONSFLAGS }}
|
|
|
|
platform: windows
|
|
|
|
target: ${{ matrix.target }}
|
|
|
|
tools: ${{ matrix.tools }}
|
2022-08-25 12:11:54 +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 }}
|