Working on the build workflow - 09/13/2023 04:05:23 UTC #8
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
name: Main Build | |
on: | |
push: | |
paths: | |
- '**.cpp' | |
- '**.h' | |
- '**.sln' | |
- '**.yml' | |
- '*.yml' | |
- '**.ps1' | |
env: | |
VS_PROGRAM: 1 | |
VS_FILE: 0 | |
VS_EPOCH: | |
VS_FULL: | |
RELEASE_TITLE: "Hosts Compress" | |
RELEASE_FILE: "./docs/md/pre-release.md" | |
PRERELEASE: True | |
jobs: | |
build_windows: | |
name: Build Windows Project | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: microsoft/[email protected] | |
- id: make_hosts_compress | |
run: | | |
$cl = (Get-ChildItem -Path "$Env:ProgramW6432\Microsoft Visual Studio\" -Recurse -Filter "cl.exe").FullName | Select-String ".*x64\\x64.*" | |
cd hostscompress || exit 255 | |
$cl[-1] /c /Ycpch.h /std:c++20 /W4 /EHsc pch.cpp || exit 254 | |
if (-Not (Test-Path -Path pch.pch)) { Exit 253 } |