Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-22.04]
os: [windows-latest, macos-latest, ubuntu-22.04, ubuntu-22.04-arm]
fail-fast: false
steps:
- name: Expose GitHub Runtime
Expand Down
18 changes: 13 additions & 5 deletions build/BuildWindowsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,26 @@ public sealed class BuildWindowsTask : FrostingTask<BuildContext>
public override bool ShouldRun(BuildContext context) => context.IsRunningOnWindows();

public override void Run(BuildContext context)
{
// Ensure statically linked
context.ReplaceTextInFiles("freetype/builds/windows/vc2010/freetype.vcxproj", "MultiThreadedDLL", "MultiThreaded");

BuildForArchitecture(context, PlatformTarget.x64, "win-x64");
BuildForArchitecture(context, PlatformTarget.ARM64, "win-arm64");
}

private void BuildForArchitecture(BuildContext context, PlatformTarget platform, string rid)
{
MSBuildSettings buildSettings = new()
{
Verbosity = Verbosity.Normal,
Configuration = "Release",
PlatformTarget = PlatformTarget.x64
PlatformTarget = platform
};

// Ensure statically linked
context.ReplaceTextInFiles("freetype/builds/windows/vc2010/freetype.vcxproj", "MultiThreadedDLL", "MultiThreaded");

context.MSBuild("freetype/builds/windows/vc2010/freetype.vcxproj", buildSettings);
context.CopyFile("freetype-demos/bin/freetype.dll", $"{context.ArtifactsDir}/freetype.dll");

context.CreateDirectory($"{context.ArtifactsDir}/{rid}");
context.CopyFile($"freetype-demos/bin/freetype.dll", $"{context.ArtifactsDir}/{rid}/freetype.dll");
}
}
2 changes: 1 addition & 1 deletion buildscripts
Loading