Skip to content

Commit f609616

Browse files
build fixes
1 parent 25392ea commit f609616

File tree

4 files changed

+988
-4
lines changed

4 files changed

+988
-4
lines changed

.github/workflows/build.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build Windows Terminal
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: windows-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Set up Developer Mode
20+
run: Start-Process powershell -ArgumentList 'Set-ExecutionPolicy RemoteSigned -Scope Process -Force; Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux -NoRestart' -Verb RunAs
21+
22+
- name: Install Chocolatey
23+
run: |
24+
Set-ExecutionPolicy Bypass -Scope Process -Force;
25+
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072;
26+
iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
27+
28+
- name: Install PowerShell 7
29+
uses: actions/setup-powershell@v2
30+
with:
31+
version: '7.x'
32+
33+
- name: Install Windows 11 SDK
34+
run: choco install windows-sdk-11-version-22621-0
35+
36+
- name: Install Visual Studio 2022
37+
uses: microsoft/[email protected]
38+
with:
39+
vs-version: '2022'
40+
41+
- name: Install VS Workloads and Components
42+
run: |
43+
choco install visualstudio2022-workload-nativedesktop
44+
choco install visualstudio2022-workload-universal
45+
choco install visualstudio2022-component-vc143
46+
47+
- name: Install .NET Framework Targeting Pack
48+
run: choco install netfx-4.8-devpack
49+
50+
- name: Build with PowerShell
51+
shell: pwsh
52+
run: |
53+
Import-Module .\tools\OpenConsole.psm1
54+
Set-MsBuildDevEnvironment
55+
Invoke-OpenConsoleBuild

0 commit comments

Comments
 (0)