From 227af6268905142ab2afd1af66567236b33624cf Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Fri, 9 Oct 2026 16:53:29 +0900 Subject: [PATCH] Run the Mach-O CI on mold's packages The Mach-O shell tests are now the mold package's macho-integration test. The executable is built with the Mach-O targets alone, and only the Mach-O crates' unit tests run on the macOS runner. --- .github/workflows/macho.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/macho.yml b/.github/workflows/macho.yml index f90447221..76233adc1 100644 --- a/.github/workflows/macho.yml +++ b/.github/workflows/macho.yml @@ -38,9 +38,12 @@ jobs: # default timeout, as mold's CI gives its slow configurations more: # here the simulator's tests are slow, lldb's above all, whose lldb # session alone takes ten seconds on a Mac, and the first of which - # ran past a minute on the hosted runners. - - run: cargo test --workspace --lib --bins - - run: cargo test -p mold-macho-cli --test integration -- --timeout 120 + # ran past a minute on the hosted runners. The executable is built + # without the ELF targets, which these tests don't use. + - run: cargo test --locked -p mold-macho -p mold-macho-tests --lib + - run: | + cargo test --locked -p mold --no-default-features --features macho-arm64,macho-x86_64 \ + --test macho-integration -- --timeout 120 # The harness reports only which tests failed; each test's log # and its output directory are kept under the target directory.