Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

ci(httpserver): cross compile httpserver #260

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

brooksmtownsend
Copy link
Member

@brooksmtownsend brooksmtownsend commented Aug 8, 2023

Feature or Problem

After our last round of releases we noticed that we were getting linking errors on some capability providers, but not others, with dependency graphs that matched the exact same releases that failed. We assumed this was because of our use of cross, which has caused us problems in the past. This PR is the first of many that actually sets us up to cross compile these releases.

This structure of cross compiling and the code came from wasmCloud/wadm#82, huge thanks to @stephenandary for getting this done in a way that worked great for providers too.

You can see a successful run of this action, and download the provider-archive for yourself here: https://github.com/wasmCloud/capability-providers/actions/runs/5801109768

Related Issues

HTTPClient PR, which did fail to release #261

Release Information

HTTPserver v0.19.1 (I would like to release this so we can test that all functionality works)

Consumer Impact

I'm removing the armv7 Linux target from the provider archive because we do not have a host runtime that runs on that target yet.

Testing

Built on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Tested on platform(s)

  • x86_64-linux
  • aarch64-linux
  • x86_64-darwin
  • aarch64-darwin
  • x86_64-windows

Unit Test(s)

Acceptance or Integration

Manual Verification

I manually ensured that the httpserver here worked on aarch64-darwin. I want to test this with Linux as well once it releases and I don't have to start from file only.

Signed-off-by: Brooks Townsend <[email protected]>

removed cross.toml

Signed-off-by: Brooks Townsend <[email protected]>

working directory

Signed-off-by: Brooks Townsend <[email protected]>

windows artifact

Signed-off-by: Brooks Townsend <[email protected]>

dumb

Signed-off-by: Brooks Townsend <[email protected]>

dumb2

Signed-off-by: Brooks Townsend <[email protected]>

ASSEMBLE

Signed-off-by: Brooks Townsend <[email protected]>

cleanup for PR

Signed-off-by: Brooks Townsend <[email protected]>

- name: Determine artifact name
- name: Install latest Rust stable toolchain
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like this step is duplicated?

Copy link
Member Author

Choose a reason for hiding this comment

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

touche

Signed-off-by: Brooks Townsend <[email protected]>

no duplicate

Signed-off-by: Brooks Townsend <[email protected]>
@andar1an
Copy link

andar1an commented Aug 8, 2023

No worries, and thanks for shout out. That was based on work that @thomastaylor312 had shared that I used to do that, so thanks Taylor lol.

@brooksmtownsend brooksmtownsend merged commit 22d445b into main Aug 8, 2023
9 checks passed
@brooksmtownsend brooksmtownsend deleted the ci/cross-compile-httpserver branch August 8, 2023 20:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants