Skip to content

Commit

Permalink
trying to crosscompile
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyredondo committed Jan 31, 2025
1 parent 44fd3f4 commit 6491daf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,8 @@ jobs:
sudo apt-get install -y make gcc libc-dev libpq-dev zlib1g-dev
sudo -E apt-get install -y libpam-dev libedit-dev libselinux1-dev
sudo -E apt-get install -y libssl-dev libkrb5-dev
sudo -E apt-get install -y binutils-aarch64-linux-gnu debootstrap binfmt-support qemu-user-static gcc-aarch64-linux-gnu llvm-objcopy
sudo -E apt-get install -y binutils-aarch64-linux-gnu debootstrap binfmt-support qemu-user-static gcc-aarch64-linux-gnu
wget https://raw.githubusercontent.com/dotnet/runtime/refs/tags/v9.0.1/eng/common/cross/build-rootfs.sh
# mkdir arm64
# cd arm64
# wget https://raw.githubusercontent.com/dotnet/runtime/refs/tags/v8.0.12/eng/common/cross/arm64/sources.list.bionic
# cd ..
chmod +x build-rootfs.sh
sudo ./build-rootfs.sh arm64 bionic
Expand Down
3 changes: 3 additions & 0 deletions GetAssemblyInfo/GetAssemblyInfo.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
<PublishAot>true</PublishAot>
<ExportsFile>$(MSBuildThisFileDirectory)exports.def</ExportsFile>
</PropertyGroup>
<PropertyGroup Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'ARM64'">
<ObjCopyName>aarch64-linux-gnu-objcopy</ObjCopyName>
</PropertyGroup>
<ItemGroup Condition="('$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'X64' OR '$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)' == 'ARM64') AND '$(OutputType)' == 'Exe'">
<PackageReference Include="PublishAotCompressed" Version="1.0.3" />
</ItemGroup>
Expand Down

0 comments on commit 6491daf

Please sign in to comment.