Skip to content

Commit

Permalink
Add workaround to fix Jobs on Mac OS X for Arm64.
Browse files Browse the repository at this point in the history
  • Loading branch information
NateMerritt committed Dec 20, 2024
1 parent f31920d commit 74a86fa
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<PackageVersion Include="Azure.ResourceManager.KeyVault" Version="1.3.0" />
<PackageVersion Include="Azure.Security.KeyVault.Secrets" Version="4.7.0" />
<PackageVersion Include="Azure.Storage.Queues" Version="12.21.0" />
<PackageVersion Include="Contrib.Grpc.Core.M1" Version="2.41.0" />
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
<PackageVersion Include="Dapper" Version="2.1.35" />
<PackageVersion Include="FastEndpoints" Version="5.32.0" />
Expand Down
12 changes: 12 additions & 0 deletions src/Aquifer.Jobs/Aquifer.Jobs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,16 @@
<ItemGroup>
<Using Include="System.Threading.ExecutionContext" Alias="ExecutionContext" />
</ItemGroup>

<!-- Workaround for https://github.com/microsoft/durabletask-dotnet/issues/148 to get Jobs working on Arm64 for Mac OS X. -->
<ItemGroup>
<PackageReference Include="Contrib.Grpc.Core.M1" />
</ItemGroup>
<Target Name="CopyGrpcNativeAssetsToOutDir" AfterTargets="Build">
<ItemGroup>
<NativeAssetToCopy Condition="$([MSBuild]::IsOSPlatform('OSX'))" Include="$(OutDir)runtimes/osx-arm64/native/*" />
</ItemGroup>
<Copy SourceFiles="@(NativeAssetToCopy)" DestinationFolder="$(OutDir).azurefunctions/runtimes/osx-arm64/native" />
</Target>
<!-- End workaround. -->
</Project>

0 comments on commit 74a86fa

Please sign in to comment.