Skip to content

Commit ea3a9e8

Browse files
committed
Revert OpusCompile.yml
1 parent d4d3a10 commit ea3a9e8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/OpusCompile.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ jobs:
221221
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" %VCARCH%
222222
cl /O2 /MD /I..\opus\include /c ..\OpusSharp.Natives\opus_shim.c /Foopus_shim.obj
223223
dumpbin /symbols Release\opus.lib > opus_symbols.txt
224-
powershell -NoProfile -Command "$s = (gc opus_symbols.txt) | Where-Object {$_ -match 'External\s+\|\s+_?opus_\S+'} | ForEach-Object { $raw = [regex]::Match($_, 'External\s+\|\s+(_?opus_\S+)').Groups[1].Value; if ($raw.StartsWith('_')) { $raw.Substring(1) + '=' + $raw } else { $raw } } | Sort-Object -Unique; [IO.File]::WriteAllText('opus.def', \"EXPORTS`r`n\" + ($s -join \"`r`n\") + \"`r`n\")"
224+
powershell -NoProfile -Command "$s = (gc opus_symbols.txt) | Where-Object {$_ -match 'External\s+\|\s+(opus_\S+)'} | ForEach-Object { [regex]::Match($_, 'External\s+\|\s+(\S+)').Groups[1].Value -replace '^_','' } | Sort-Object -Unique; [IO.File]::WriteAllText('opus.def', \"EXPORTS`r`n\" + ($s -join \"`r`n\") + \"`r`n\")"
225225
link /DLL /OUT:opus.dll /DEF:opus.def opus_shim.obj Release\opus.lib ucrt.lib vcruntime.lib msvcrt.lib
226226
227227
- name: Upload Artifact

0 commit comments

Comments
 (0)