Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI for Arm64 #178

Open
gfoidl opened this issue Oct 9, 2022 · 4 comments
Open

CI for Arm64 #178

gfoidl opened this issue Oct 9, 2022 · 4 comments

Comments

@gfoidl
Copy link
Owner

gfoidl commented Oct 9, 2022

No description provided.

@gfoidl gfoidl added this to the v2.0 milestone Oct 9, 2022
@gfoidl
Copy link
Owner Author

gfoidl commented Oct 11, 2022

@gfoidl
Copy link
Owner Author

gfoidl commented Oct 11, 2022

docker run --rm --privileged multiarch/qemu-user-static:register    # to setup
docker run -it --rm multiarch/ubuntu-debootstrap:arm64-focal

apt update
apt install -y --no-install-recommends \
    libc6 \
    libgcc1 \
    libgssapi-krb5-2 \
    libicu66 \
    libssl1.1 \
    libstdc++6 \
    zlib1g \
    curl

export DOTNET_SDK_VERSION=7.0.100-rc.1.22431.12
curl -SLk --output dotnet.tar.gz https://dotnetcli.blob.core.windows.net/dotnet/Sdk/$DOTNET_SDK_VERSION/dotnet-sdk-$DOTNET_SDK_VERSION-linux-arm64.tar.gz
mkdir -p /usr/share/dotnet
tar -v -zxf dotnet.tar.gz -C /usr/share/dotnet
rm dotnet.tar.gz
ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet

# If needed
git clone https://github.com/gfoidl/Base64.git
cd Base64/tests/gfoidl.Base64.Tests

Host: ./build.sh build
dotnet test gfoidl.Base64.Tests.dll

works and even supports AdvSimd 🎉

@gfoidl
Copy link
Owner Author

gfoidl commented Oct 11, 2022

😢 but on dotnet test gfoidl.Base64.Tests.dll there are always some infra-failures like NullRef-exceptions, etc.

Need to find another way -- maybe https://www.reddit.com/r/docker/comments/c75uhq/comment/esdf06y/?utm_source=share&utm_medium=web2x&context=3

@gfoidl
Copy link
Owner Author

gfoidl commented Oct 11, 2022

https://www.reddit.com/r/docker/comments/c75uhq/comment/esdf06y/?utm_source=share&utm_medium=web2x&context=3 works a bit better, but still has some strange failure not related to product code and is extremely slow.

I think the best option at the moment is to just rent a arm64-VM (e.g. Google Cloud), install .NET and do build.sh build && build.sh test there.
I did this, all tests passed.

@gfoidl gfoidl modified the milestones: v2.0, Future Oct 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant