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

Build arm64 binaries #6

Open
wants to merge 10 commits into
base: main
Choose a base branch
from
Open

Build arm64 binaries #6

wants to merge 10 commits into from

Conversation

int128
Copy link

@int128 int128 commented Apr 26, 2024

Hi,

I'd like to run split-test on the self-hosted runners of Linux arm64. This pull request will release both amd64 and arm64 binaries.

In these workflows, some actions are already archived.

  • actions-rs/* actions are archived. I replaced them with rustup and cargo.
  • actions/upload-release-asset action is archived. I replaced it with gh command.

Also I could not build a binary for x86_64-apple-darwin due to some errors, so commented it out.

Thanks.

- target: x86_64-pc-windows-gnu
os: ubuntu-latest
extension: .exe
- target: x86_64-apple-darwin
# - target: x86_64-apple-darwin
# os: ubuntu-latest
Copy link
Owner

@mtsmfm mtsmfm Apr 26, 2024

Choose a reason for hiding this comment

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

I thought this os should be macos-latest though, it seems you've tried both

https://github.com/int128/split-test/actions/runs/8845858159/job/24290599577

uses: actions/create-release@v1
- uses: actions/checkout@v4
- run: rustup update stable
- run: rustup default stable
Copy link
Owner

Choose a reason for hiding this comment

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

According to the error message

https://github.com/int128/split-test/actions/runs/8845858159/job/24290599577

error[E0463]: can't find crate for `core`
  |
  = note: the `x86_64-apple-darwin` target may not be installed
  = help: consider downloading the target with `rustup target add x86_64-apple-darwin`

perhaps this patch helps?

Suggested change
- run: rustup default stable
- run: rustup default stable
- run: rustup target add ${{ matrix.target }}

Copy link
Owner

Choose a reason for hiding this comment

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

Copy link
Owner

Choose a reason for hiding this comment

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

@int128 Do you still have interests on this? At least I'd like to fix the CI if it has any trouble

Copy link
Author

Choose a reason for hiding this comment

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

Sorry, I forgot everything about this pull request. If needed, feel free to pick my changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants