Skip to content

action: Use setup-ninja instead of setup-cpp and use absoulte paths for cmake invocation #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ADKaster
Copy link
Member

@ADKaster ADKaster commented Nov 19, 2022

setup-cpp was giving compiler binaries in the cached tool path that could not properly find native host toolchain headers on Ubuntu and macOS.

Change to rely on the pre-installed compilers rather than trying to get llvm using the third-party action, and use setup-ninja to make sure we have ninja installed. Because the setup-ninja action doesn't use an absolute path for its core.addPath() call (whyyyyyyy) we have to make sure to root the initial cmake configuration in $GITHUB_WORKSPACE rather than buildPath.

Succesful run using this: https://github.com/jntrnr/jaktnesmonster/actions/runs/3505500353/jobs/5871847368

@ADKaster ADKaster force-pushed the bump-llvm-14-0-6 branch 13 times, most recently from 35f7ed0 to d7bf1ab Compare November 19, 2022 22:21
All the platforms we're targeting have `clang` as `clang-14` already
in the path, so let's sidestep the strange include pathing problems the
latest versions of this action seem to be producing.
@ADKaster ADKaster changed the title action: Bump llvm version to 14.0.6 action: Use setup-ninja instead of setup-cpp and use absoulte paths for cmake invocation Nov 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant