codecov / codecov-action

GitHub Action that uploads coverage to Codecov :open_umbrella:
https://www.codecov.io
MIT License
1.47k stars 207 forks source link

`Unknown system error ` on `macos-13` runner #1549

Open viirya opened 2 months ago

viirya commented 2 months ago

Hi,

We have GitHub Actions CI pipelines on both macos-14 and macos-13 runners. But on macos-13 runner, we saw the following error:

Run codecov/codecov-action@v3
  with:
  env:
    RUST_VERSION: stable
    DYLD_LIBRARY_PATH: /usr/local/opt/openssl@3/lib:
    JAVA_HOME: /Users/runner/hostedtoolcache/Java_Zulu_jdk/17.0.12-7/x64
    JAVA_HOME_17_X64: /Users/runner/hostedtoolcache/Java_Zulu_jdk/17.0.12-7/x64
==> macos OS detected
https://uploader.codecov.io/latest/macos/codecov.SHA256SUM
==> SHASUM file signed by key id 806bb28aed779869
==> Uploader SHASUM verified (75086ee436f6f74c4e8f65448eaa399e38bc93bb27a53d057b24b275b9f78c89  codecov)
==> Running version latest
==> Running version v0.8.0
/Users/runner/work/_actions/codecov/codecov-action/v3/dist/codecov -n  -Q github-action-3.1.6
Error: spawn Unknown system error -86
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at Object.spawn (node:child_process:761:9)
    at ToolRunner.<anonymous> (/Users/runner/work/_actions/codecov/codecov-action/v3/webpack:/codecov-action/node_modules/@actions/exec/lib/toolrunner.js:413:1)

It looks like the architecture doesn't match. According to the docs, codecov-action supports macos, I'm wondering if it supports both 13 and 14 runners?

zhongjiajie commented 2 months ago

same here in https://github.com/apache/dolphinscheduler-sdk-python/pull/150

corhere commented 2 months ago

(System error -86 is -EBADARCH -- Bad CPU type in executable.)

It can be worked around by configuring the action to use v0.7.3 of the uploader, which was built for Intel macs.

with:
  version: v0.7.3