SwiftyLab / setup-swift

GitHub Action to setup Swift environment
https://github.com/marketplace/actions/setup-swift-environment-for-macos-linux-and-windows
MIT License
9 stars 1 forks source link

Link failures in CI when I use this action #236

Closed dabrahams closed 5 months ago

dabrahams commented 6 months ago

With this action I get link errors in CI (failure to find a Foundation symbol!) that I don't get if I use swift-actions/setup-swift@v1 instead. I think you must be setting something up incorrectly.

Building for debugging...
dyld[7460]: Symbol not found: (_$s10Foundation11JSONDecoderC6decode_4fromxxm_AA4DataVtKSeRzlFTj)
  Referenced from: '/Users/runner/work/hylo/hylo/hylo/.build/plugins/tools/debug/GenerateHyloFileTests'
  Expected in: '/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation'
[5/14] Generating HyloFileTests.swift
Error: Process completed with exit code 1.

The complete log of my failing build is here.

soumyamahunt commented 6 months ago

This is strange, never faced any linker errors in my repos where I am using this action. Would love feedback on what is being set as wrong, macOS specific implementation can be found here.

dabrahams commented 6 months ago

I have no idea; I've never written a GitHub action and wouldn't know what this source means. I'd compare the code of the two actions if I were you to look for likely culprits.

dabrahams commented 5 months ago

As you can see from the build results on the commit referenced above, that link error is not reproducing, so I'm going to close this issue. Thanks for your attention!

soumyamahunt commented 5 months ago

Glad to know @dabrahams you got this resolved.