update gcc build, moved to external #386
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
#---------------------------------------------------------------------------------------- | |
# FILENAME: | |
# test_windows.yml | |
# DESCRIPTION: | |
# GitHub Actions configuration for Windows. | |
# AUTHOR: | |
# Adam Erickson (Nervosys) | |
# DATE: | |
# 2024-02-20 | |
# NOTES: | |
# - Requires Visual Studio 2022 Build Tools v143 (windows-2022)? | |
# | |
# Copyright © 2024 Nervosys, LLC | |
#---------------------------------------------------------------------------------------- | |
name: "Build: Windows" | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
types: [opened, synchronize, reopened, closed] | |
# workflow_dispatch: | |
jobs: | |
build-windows-2022-cmd: | |
runs-on: ${{ matrix.os }} # windows-latest | |
strategy: | |
matrix: | |
os: [windows-2022] # versions: [2019: 10, 2022: 11] | |
arch: | |
- amd64 | |
# - arm64 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Enable Developer Command Prompt for Visual Studio" | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: "Add MSBuild to PATH" | |
uses: microsoft/setup-msbuild@v2 | |
- name: "Build AutonomyLib" | |
if: ${{ matrix.os == 'windows-2022' }} | |
shell: cmd | |
run: | | |
REM Initialize Visual Studio 2022 Developer Command Prompt and prepend MSBuild to PATH. | |
REM set WorkingDir=%cd% | |
REM echo "Current directory: %WorkingDir%" | |
REM "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\Tools\vsdevcmd.bat" | |
REM setx PATH "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\;%PATH%" | |
REM cd %WorkingDir% | |
REM set CMAKE_GENERATOR_PLATFORM = "Visual Studio 17 2022" | |
scripts\cmd\build.cmd | |
build-windows-2022-pwsh: | |
runs-on: ${{ matrix.os }} # windows-latest | |
strategy: | |
matrix: | |
os: [windows-2022] # versions: [2019: 10, 2022: 11] | |
arch: | |
- amd64 | |
# - arm64 | |
steps: | |
- uses: actions/checkout@v4 | |
# - name: "Add MSBuild to PATH" | |
# uses: microsoft/setup-msbuild@v2 | |
- name: "Build AutonomyLib" | |
if: ${{ matrix.os == 'windows-2022' }} | |
shell: pwsh | |
run: | | |
# Initialize Visual Studio 2022 Developer Command Prompt and prepend MSBuild to PATH. | |
$ProjectDir = "$PWD" | |
$VisualStudioDir = 'C:\Program Files\Microsoft Visual Studio\2022\Enterprise' | |
. "${VisualStudioDir}\Common7\Tools\Launch-VsDevShell.ps1" -Latest | |
${env:PATH} += ";${VisualStudioDir}\MSBuild\Current\Bin" | |
${env:CMAKE_GENERATOR} = 'Visual Studio 17 2022' | |
Set-Location "$ProjectDir" | |
# Set-PSDebug -Trace 1 | |
. "${ProjectDir}\scripts\build.ps1" -BuildMode 'Release' -CmakeGenerator "${env:CMAKE_GENERATOR}" -UnrealAsset -Automate |