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

Update snapcraft.yaml files for arm binaries #45

Merged
merged 4 commits into from Sep 23, 2021

Conversation

lucyllewy
Copy link
Contributor

@lucyllewy lucyllewy commented Jan 16, 2020

Add arm32 and arm64 binaries of PowerShell if the build is executed on an appropriate host.

To build an arm32 or arm64 version of the snap it will be necessary to modify the build-bots to execute the job on arm32 and arm64 hosts in addition to the current amd64. I believe it will also require additional Dockerfile definitions (at ./tools/releaseBuild/Images) to create an appropriate snapcraft container for each new architecture.

Fixes #55
Fixes #73

Signed-off-by: Daniel Llewellyn daniel@bowlhat.net

@lucyllewy
Copy link
Contributor Author

It looks like the failure of CI is from unrelated changes upstream in Snapcraft: see canonical/snapcraft#2883

As we're building our own Docker images then the changes will need to be massaged into our Dockerfiles to add core18 in addition to core to the Docker images.

@lucyllewy
Copy link
Contributor Author

CI fixed. (Sorry it took me so long to circle back and resync against main)

@lucyllewy
Copy link
Contributor Author

cc: @TravisEz13

stable/snap/snapcraft.yaml Outdated Show resolved Hide resolved
preview/snap/snapcraft.yaml Outdated Show resolved Hide resolved
stable/snap/snapcraft.yaml Outdated Show resolved Hide resolved
Copy link
Member

@TravisEz13 TravisEz13 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to test this, but we don't currently have ARM. Do you know a public CI system that can run ARM?

@lucyllewy
Copy link
Contributor Author

unfortunately I don't know about any available CI systems that have an ARM runner. I've been on the lookout for other snap projects, too..

Add arm32 and arm64 binaries if the build is executed on an appropriate host

Signed-off-by: Daniel Llewellyn <daniel@bowlhat.net>
Dani Llewellyn added 3 commits September 23, 2021 19:44
* Be explicit about supported platforms. Fail if the platform is unsupported.

Signed-off-by: Dani Llewellyn <diddledani@ubuntu.com>
Use `rm -f` for `libcrypto.so.1.0.0` and `libssl.so.1.0.0` to cope with any cases where these aren't present. My local build fails here without this change

Signed-off-by: Dani Llewellyn <diddledani@ubuntu.com>
@TravisEz13
Copy link
Member

Thanks for the updates.

@TravisEz13
Copy link
Member

I don't have a build environment for this, but I have been promised one "soon".

@TravisEz13 TravisEz13 merged commit b6b6367 into PowerShell:master Sep 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants