Skip to content

Commit ec34c48

Browse files
committed
Attempting to add Gen2DFTLib to autobuild
1 parent e7cca97 commit ec34c48

File tree

4 files changed

+46
-7
lines changed

4 files changed

+46
-7
lines changed

DoAutobuild.ps1

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,30 @@
1+
$BaseDir = $env:APPVEYOR_BUILD_FOLDER;
2+
$BuildVersion = $env:appveyor_build_version;
3+
14
& nuget restore
25

3-
& dotnet publish "$env:APPVEYOR_BUILD_FOLDER\ColorChord.NET\ColorChord.NET.csproj" --output "$env:APPVEYOR_BUILD_FOLDER\ColorChord.NET\PublishResult" --configuration Release --verbosity minimal
6+
# ColorChord.NET
7+
& dotnet publish "$BaseDir\ColorChord.NET\ColorChord.NET.csproj" --output "$BaseDir\ColorChord.NET\PublishResult" --configuration Release --verbosity minimal
48
if ($LastExitCode -NE 0) { [Environment]::Exit(-1); }
59

6-
$ExtensionDirs = Get-ChildItem "$env:APPVEYOR_BUILD_FOLDER\Extensions\" -Directory
10+
# Extensions
11+
$ExtensionDirs = Get-ChildItem "$BaseDir\Extensions\" -Directory;
712
$ExtensionDirs | ForEach-Object `
813
{
9-
& dotnet publish "$env:APPVEYOR_BUILD_FOLDER\Extensions\$($_.Name)\$($_.Name).csproj" --output "$env:APPVEYOR_BUILD_FOLDER\Extensions\PublishResult" -p:OutputPath="$env:APPVEYOR_BUILD_FOLDER\Extensions\PublishResult" --configuration Release --verbosity minimal
14+
& dotnet publish "$BaseDir\Extensions\$($_.Name)\$($_.Name).csproj" --output "$BaseDir\Extensions\PublishResult" -p:OutputPath="$BaseDir\Extensions\PublishResult" --configuration Release --verbosity minimal
1015
if ($LastExitCode -NE 0) { [Environment]::Exit(-2); }
1116
}
1217

13-
# Remove-Item "$env:APPVEYOR_BUILD_FOLDER\Extensions\PublishResult\ColorChord.NET-API.*"
18+
# Gen2DFTLib
19+
$Gen2Profiles = Get-ChildItem "$BaseDir\Gen2DFTLib\Properties\PublishProfiles\" -Filter '*.pubxml' -File;
20+
$Gen2TargetDir = New-Item -ItemType Directory "$BaseDir\Gen2DFTLib\PublishResult"
21+
$Gen2Profiles | ForEach-Object `
22+
{
23+
& dotnet publish "$BaseDir\Gen2DFTLib\Gen2DFTLib.csproj" /p:PublishProfile=$($_.FullName)
24+
if ($LastExitCode -NE 0) { [Environment]::Exit(-3); }
25+
Copy-Item "$BaseDir\Gen2DFTLib\bin\AOT\*" $Gen2TargetDir;
26+
}
1427

15-
& 7z a "ColorChord.NET-autobuild-v$($env:appveyor_build_version).zip" "$env:APPVEYOR_BUILD_FOLDER\ColorChord.NET\PublishResult\*"
16-
& 7z a "ColorChord.NET-Extensions-autobuild-v$($env:appveyor_build_version).zip" "$env:APPVEYOR_BUILD_FOLDER\Extensions\PublishResult\CC.NET-Ext-*"
28+
& 7z a -mx9 "ColorChord.NET-autobuild-v$BuildVersion.zip" "$BaseDir\ColorChord.NET\PublishResult\*"
29+
& 7z a -mx9 "ColorChord.NET-Extensions-autobuild-v$BuildVersion.zip" "$BaseDir\Extensions\PublishResult\CC.NET-Ext-*"
30+
& 7z a -mx9 "Gen2DFTLib-autobuild-v$BuildVersion.zip" $(Join-Path $Gen2TargetDir.FullName '\*')
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!--
3+
https://go.microsoft.com/fwlink/?LinkID=208121.
4+
-->
5+
<Project>
6+
<PropertyGroup>
7+
<Configuration>Release</Configuration>
8+
<Platform>x64</Platform>
9+
<PublishDir>bin\AOT\</PublishDir>
10+
<PublishProtocol>FileSystem</PublishProtocol>
11+
<_TargetId>Folder</_TargetId>
12+
<TargetFramework>net8.0</TargetFramework>
13+
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
14+
<SelfContained>true</SelfContained>
15+
<PublishSingleFile>false</PublishSingleFile>
16+
<PublishReadyToRun>false</PublishReadyToRun>
17+
18+
<IlcInstructionSet>x86-x64-v3</IlcInstructionSet> <!-- Approx. 2015 level feature set: Haswell/Excavator -->
19+
<AssemblyName>Gen2DFTLib_Win_x64_AVX2</AssemblyName>
20+
</PropertyGroup>
21+
</Project>

Gen2DFTLib/Properties/PublishProfiles/FolderProfile.pubxml renamed to Gen2DFTLib/Properties/PublishProfiles/Win_x64_Baseline.pubxml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
1414
<SelfContained>true</SelfContained>
1515
<PublishSingleFile>false</PublishSingleFile>
1616
<PublishReadyToRun>false</PublishReadyToRun>
17+
18+
<IlcInstructionSet>x86-x64</IlcInstructionSet> <!-- SShould work on all x64 -->
19+
<AssemblyName>Gen2DFTLib_Win_x64_Baseline</AssemblyName>
1720
</PropertyGroup>
1821
</Project>

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,12 @@ build_script:
2828
. $env:APPVEYOR_BUILD_FOLDER\DoAutobuild.ps1
2929
artifacts:
3030
- path: ColorChord.NET*autobuild-v*.zip
31+
- path: Gen2DFTLib-autobuild-v*.zip
3132
deploy:
3233
- provider: GitHub
3334
tag: auto-v$(appveyor_build_version)
3435
release: Automatic Build v$(appveyor_build_version)
35-
description: This is an automatic build of the latest commits. Usage is at your own risk. Unless you are actively debugging, it is recommended to use a regular release instead.
36+
description: This is an automatic build of the latest under-development code. This build may be unstable or may not work at all. If you prefer a more stable build, download one of the regular releases instead.
3637
auth_token:
3738
secure: fIgQpdctIp9szYmG0dfhfD0Cc4/eKQYO7aGXOOYULOB4Bu5SIg6GE+ZRw9kTFNRZ
3839
artifact: /ColorChord\.NET.*autobuild-v.*\.zip/

0 commit comments

Comments
 (0)