Skip to content

Commit

Permalink
Merge branch 'main' into more-arm64-docker-builds
Browse files Browse the repository at this point in the history
  • Loading branch information
garasubo committed Feb 19, 2025
2 parents 84164e1 + c7dee4d commit ae035b9
Show file tree
Hide file tree
Showing 13 changed files with 31 additions and 9 deletions.
4 changes: 4 additions & 0 deletions .changes/1623.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"type": "fixed",
"description": "fixed an issue where cross would look for metadata.cross outside the workspace"
}
4 changes: 4 additions & 0 deletions .changes/1625.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"description": "bump ct-ng to 1.27.0",
"type": "changed"
}
2 changes: 1 addition & 1 deletion .github/actions/cargo-install-upload-artifacts/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ runs:

- name: Upload artifacts
if: ${{ steps.archive.outputs.path }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ steps.archive.outputs.name }}
path: ${{ steps.archive.outputs.path }}
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/cargo-publish/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:

- name: Download artifacts
id: download-artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
path:
${{ runner.temp }}/artifacts
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ jobs:
with:
ref: ${{ inputs.checkout-ref }}
- uses: ./.github/actions/setup-rust
- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
path: ${{ runner.temp }}/artifacts
- name: Grab PR number
Expand Down
4 changes: 2 additions & 2 deletions deny.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ targets = [

[advisories]
version = 2
# FIXME: remove this if/when clap changes to is-terminal, atty is
# patched, or we migrated to an MSRV of 1.66.0.
ignore = [
# FIXME: remove this if/when clap changes to is-terminal, atty is
# patched, or we migrated to an MSRV of 1.66.0.
"RUSTSEC-2021-0145",
"RUSTSEC-2024-0375"
]
Expand Down
6 changes: 6 additions & 0 deletions docker/Dockerfile.aarch64-unknown-linux-gnu.centos
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ RUN /linux-image.sh aarch64

FROM centos:7

# From https://github.com/rust-lang/rust/blob/672e3aaf28ab1e5cbe80b3ff012cd3a8e4ef98af/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile#L9-L12
# CentOS 7 EOL is June 30, 2024, but the repos remain in the vault.
RUN sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!'
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf

COPY common.sh lib.sh /
RUN /common.sh

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.loongarch64-unknown-linux-gnu
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FROM cross-base as build
ARG VERBOSE
COPY crosstool-ng.sh /
COPY crosstool-config/loongarch64-unknown-linux-gnu.config /
RUN /crosstool-ng.sh loongarch64-unknown-linux-gnu.config 5 ed12fa68402f58e171a6f79500f73f4781fdc9e5
RUN /crosstool-ng.sh loongarch64-unknown-linux-gnu.config 5

ENV PATH /x-tools/loongarch64-unknown-linux-gnu/bin/:$PATH

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.loongarch64-unknown-linux-musl
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FROM cross-base as build
ARG VERBOSE
COPY crosstool-ng.sh /
COPY crosstool-config/loongarch64-unknown-linux-musl.config /
RUN /crosstool-ng.sh loongarch64-unknown-linux-musl.config 5 ed12fa68402f58e171a6f79500f73f4781fdc9e5
RUN /crosstool-ng.sh loongarch64-unknown-linux-musl.config 5

ENV PATH /x-tools/loongarch64-unknown-linux-musl/bin/:$PATH

Expand Down
7 changes: 7 additions & 0 deletions docker/Dockerfile.native.centos
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ RUN /native-linux-image.sh

FROM centos:7

# From https://github.com/rust-lang/rust/blob/672e3aaf28ab1e5cbe80b3ff012cd3a8e4ef98af/src/ci/docker/host-x86_64/dist-x86_64-linux/Dockerfile#L9-L12
# CentOS 7 EOL is June 30, 2024, but the repos remain in the vault.
RUN sed -i /etc/yum.repos.d/*.repo -e 's!^mirrorlist!#mirrorlist!' \
-e 's!^#baseurl=http://mirror.centos.org/!baseurl=https://vault.centos.org/!'
RUN sed -i 's/enabled=1/enabled=0/' /etc/yum/pluginconf.d/fastestmirror.conf


COPY common.sh lib.sh /
RUN /common.sh

Expand Down
2 changes: 1 addition & 1 deletion docker/crosstool-ng.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ silence_stdout() {
main() {
local config="${1}"
local nproc="${2}"
local ctng_version=${3:-crosstool-ng-1.26.0}
local ctng_version=${3:-crosstool-ng-1.27.0}
local ctng_url="https://github.com/crosstool-ng/crosstool-ng"
local username=crosstool
local crosstooldir=/opt/crosstool
Expand Down
2 changes: 1 addition & 1 deletion docker/linux-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ max_kernel_version() {
main() {
# arch in the rust target
local arch="${1}" \
kversion=5.10.0-27
kversion=5.10.0-33

local debsource="deb http://http.debian.net/debian/ bullseye main"
debsource="${debsource}\ndeb http://security.debian.org/ bullseye-security main"
Expand Down
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -959,6 +959,7 @@ pub fn toml(metadata: &CargoMetadata, msg_info: &mut MessageInfo) -> Result<Cros
for (package, package_metadata) in metadata
.packages
.iter()
.filter(|p| metadata.workspace_members.contains(&p.id))
.filter_map(|p| Some((p.manifest_path.as_path(), p.metadata.as_deref()?)))
{
let package_metadata =
Expand Down

0 comments on commit ae035b9

Please sign in to comment.