Skip to content

Commit 674f3b5

Browse files
committed
Exclude python worker for linux-arm64 build (#4425)
1 parent 0113100 commit 674f3b5

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

build/Settings.cs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ private static string config(string @default = null, [CallerMemberName] string k
4343

4444
public static readonly string RuntimeSettings = Path.Combine("..", "test", "Cli", "Func.E2E.Tests", ".runsettings", "start_tests", "ci_pipeline", "dotnet_inproc.runsettings");
4545

46-
public static readonly string[] TargetRuntimes = new[] {
46+
public static readonly string[] TargetRuntimes = new[]
47+
{
4748
"min.win-arm64",
4849
"min.win-x86",
4950
"min.win-x64",
@@ -56,7 +57,11 @@ private static string config(string @default = null, [CallerMemberName] string k
5657
"win-arm64"
5758
};
5859

59-
public static readonly string[] UnsupportedPythonRuntimes = new[] { "win-arm64" };
60+
public static readonly string[] UnsupportedPythonRuntimes = new[]
61+
{
62+
"win-arm64",
63+
"linux-arm64"
64+
};
6065

6166
public static readonly Dictionary<string, string> RuntimesToOS = new Dictionary<string, string>
6267
{

src/Cli/func/Azure.Functions.Cli.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,9 @@
297297
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.0" />
298298
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.2" />
299299
<PackageReference Include="Microsoft.Azure.Functions.PowerShellWorker.PS7.4" />
300-
<!-- PythonWorker v4.35 introduced an error when being build for win-arm64. For now, we will not include this package when we build
301-
core tools for win-arm64. This is a temporary measure as we figure out how we want this to go. -->
302-
<PackageReference Include="Microsoft.Azure.Functions.PythonWorker" Condition="'$(RuntimeIdentifier)' != 'win-arm64'" />
300+
<!-- PythonWorker v4.35 introduced an error when being build for unsupported runtimes. For now, we will not include this package when we build
301+
core tools for win-arm64 and linux-arm64. This is a temporary measure as we figure out how we want this to go. -->
302+
<PackageReference Include="Microsoft.Azure.Functions.PythonWorker" Condition="'$(RuntimeIdentifier)' != 'win-arm64' and '$(RuntimeIdentifier)' != 'linux-arm64'" />
303303
</ItemGroup>
304304

305305
<ItemGroup>

0 commit comments

Comments
 (0)