Skip to content

ci: Add dist-aarch64-freebsd#154265

Open
mrkajetanp wants to merge 1 commit into
rust-lang:mainfrom
mrkajetanp:freebsd-aarch64-ci
Open

ci: Add dist-aarch64-freebsd#154265
mrkajetanp wants to merge 1 commit into
rust-lang:mainfrom
mrkajetanp:freebsd-aarch64-ci

Conversation

@mrkajetanp
Copy link
Copy Markdown
Contributor

Add scripts to build the aarch64-unknown-freebsd target in CI.
Implements MCP: rust-lang/compiler-team#961

There is currently the issue of FreeBSD version support. See the following thread for more details:
#132228

The current version supported by rust is FreeBSD 12, which is already EOL. This means it is no longer possible to download FreeBSD releases from their servers. The aarch64 build is not mirrored on the Rust servers, which is why I couldn't match the version used by already existing CI scripts and had to change this one to FreeBSD 13. FreeBSD 13 itself will be EOL a month from now, on April 30th. We might want to put aarch64 FreeBSD builds on the Rust mirror and update the support across the board to FreeBSD 14 prior to merging this.

@rustbot rustbot added A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Mar 23, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Mar 23, 2026

r? @marcoieni

rustbot has assigned @marcoieni.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: infra-ci
  • infra-ci expanded to Kobzol, Mark-Simulacrum, jdno, jieyouxu, marcoieni
  • Random selection from Mark-Simulacrum, jdno, jieyouxu, marcoieni

@mrkajetanp
Copy link
Copy Markdown
Contributor Author

@asomers
Copy link
Copy Markdown
Contributor

asomers commented Mar 23, 2026

This is awesome, @mrkajetanp . And I for one would support raising the minimum supported version to FreeBSD 13.

@marcoieni
Copy link
Copy Markdown
Member

you can add files to our mirrors at https://github.com/rust-lang/ci-mirrors

@mrkajetanp
Copy link
Copy Markdown
Contributor Author

you can add files to our mirrors at https://github.com/rust-lang/ci-mirrors

Ah good to know, thanks!

Comment thread src/ci/docker/host-aarch64/dist-aarch64-freebsd/Dockerfile Outdated
Add scripts to build the aarch64-unknown-freebsd target in CI.
Implements MCP: rust-lang/compiler-team#961
Copy link
Copy Markdown
Contributor

@homersimpsons homersimpsons left a comment

Choose a reason for hiding this comment

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

This looks okay to me (regarding the thread I opened), but I have no power here, still approving.

View changes since this review

@nohajc
Copy link
Copy Markdown

nohajc commented May 13, 2026

Would love to see this merged soon. Great that you're working on it!

@@ -5,8 +5,19 @@ set -eux

arch=$1
binutils_version=2.40
freebsd_version=12.3
triple=$arch-unknown-freebsd12
# FIXME: Use the same version from FreeBSD 14
Copy link
Copy Markdown
Member

@marcoieni marcoieni May 13, 2026

Choose a reason for hiding this comment

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

I lost the notifications and I'm only reviewing this PR now. Do you want to fix this before merging?

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah good to know! I've been meaning to update this since FreeBSD 13 is now EOL as of this month, so this should just be using FreeBSD 14 across the board. I'll push the update tomorrow.

@marcoieni
Copy link
Copy Markdown
Member

shouldn't we also add a job in https://github.com/rust-lang/rust/blob/main/src/ci/github-actions/jobs.yml ? Otherwise this will never get triggered in CI, right? 🤔

@@ -0,0 +1,44 @@
FROM ubuntu:22.04
Copy link
Copy Markdown
Member

@marcoieni marcoieni May 13, 2026

Choose a reason for hiding this comment

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

can we use a more recent ubuntu? Or do we need ubuntu 22 for some reason?

View changes since the review

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty sure it could be any ubuntu, shouldn't matter that much. I can give it a try with whichever version you think is most appropriate.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would prefer the latest lts: 26.04. But 24.04 works as well!

@mrkajetanp
Copy link
Copy Markdown
Contributor Author

I think the clean way is probably to first do a version bump to FreeBSD 14 for existing platforms, then rebase this and make it just a clean addition of aarch64 without messing with the versions. Hence the PR linked above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-CI Area: Our Github Actions CI A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-infra Relevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants