Skip to content

[Bug] Linux cache seems to be broken #513

Description

@eduardbosch-jt

Describe the bug
When I enable the cache in Linux, it fails to recover the swift installation.

To Reproduce

  1. I'm using a self-hosted runners, but I guess that issue should be on any runner.
  2. Run a workflow installing Swift with cache enabled (default)
  3. Wait for it to finish and ensure the cache has been created.
  4. Run the workflow again.

Expected behavior
The Swift should be restored from cache successfully.

Logs

/home/runner/_work/_tool/swift-6.3.2-RELEASE-ubuntu2404/6.3.2/x86_64/usr/bin/swift --version
/home/runner/_work/_tool/swift-6.3.2-RELEASE-ubuntu2404/6.3.2/x86_64/usr/bin/swift: error while loading shared libraries: libncurses.so.6: cannot open shared object file: No such file or directory
Error: The process '/home/runner/_work/_tool/swift-6.3.2-RELEASE-ubuntu2404/6.3.2/x86_64/usr/bin/swift' failed with exit code 127

Screenshots
If applicable, add screenshots to help explain your problem.

Runner (please complete the following information):

  • Name: Detected linux platform "Ubuntu" version "24.04" with arch "x64"
  • OS: Linux
  • Version 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions