Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# This workflow will build windows projects in visual studio and run tests using node.

name: CI

on:
push:
branches:
- "*"
pull_request:
branches:
- "*"

jobs:
build:
strategy:
fail-fast: true
matrix:
node:
- 12
- 14
- 16
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
with:
vs-version: 14.2
- # https://github.com/actions/virtual-environments/issues/2528#issuecomment-766883233
name: Audio device
run: Get-CimInstance Win32_SoundDevice | fl *
- name: Install Scream
shell: powershell
run: |
Start-Service audio*
Invoke-WebRequest https://github.com/duncanthrax/scream/releases/download/3.6/Scream3.6.zip -OutFile C:\Scream3.6.zip
Extract-7Zip -Path C:\Scream3.6.zip -DestinationPath C:\Scream
$cert = (Get-AuthenticodeSignature C:\Scream\Install\driver\Scream.sys).SignerCertificate
$store = [System.Security.Cryptography.X509Certificates.X509Store]::new("TrustedPublisher", "LocalMachine")
$store.Open("ReadWrite")
$store.Add($cert)
$store.Close()
cd C:\Scream\Install\driver
C:\Scream\Install\helpers\devcon install Scream.inf *Scream
- name: Audio device
run: Get-CimInstance Win32_SoundDevice | fl *
- name: Build ttseng
run: msbuild src\automationttsengine\AutomationTtsEngine.vcxproj -t:build -verbosity:diag -property:Configuration=Release '-property:SolutionDir=$(MSBuildProjectDirectory)\..\..\'
- name: Build Vocalizer
run: msbuild src\Vocalizer\Vocalizer.vcxproj -t:build -verbosity:diag -property:Configuration=Release '-property:SolutionDir=$(MSBuildProjectDirectory)\..\..\'
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: npm ci
- run: npm test
2 changes: 1 addition & 1 deletion scripts/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
const child_process = require('child_process');
const {promisify} = require('util');
const path = require('path');
const fs = require('fs/promises');
const {promises: fs} = require('fs');
const {createReadStream, createWriteStream} = require('fs');

const sudo_prompt = require('sudo-prompt');
Expand Down
4 changes: 0 additions & 4 deletions src/automationttsengine/AutomationTtsEngine.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,6 @@
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<TargetMachine>MachineX86</TargetMachine>
</Link>
<PostBuildEvent>
<Message>Performing Registration</Message>
<Command>regsvr32 /s /c "$(TargetPath)"</Command>
</PostBuildEvent>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this interfere with the build process in CI?

</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Midl>
Expand Down