Skip to content
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

feat: macOS runner support #37

Merged
merged 12 commits into from
Jan 13, 2025
Merged

feat: macOS runner support #37

merged 12 commits into from
Jan 13, 2025

Conversation

antazoey
Copy link
Member

@antazoey antazoey commented Jan 6, 2025

What I did

an annoying handler for repressing a warning causes the action to fail.

How I did it

use -p so that mkdir will just make all the parents if it really has to, hopefully that doesnt matter too much

How to verify it

im testing it in ape-titanoboa right now, this is blocking it from using the action which i kinda need to use for caching reasons.

Checklist

  • All changes are completed
  • Change is covered in tests
  • Documentation is complete

@antazoey antazoey changed the title fix: use -p in mkdir cmd to avoid directory-not-exists error fix: issue where mkdir fails in cache-warning avoidance Jan 6, 2025
mkdir "${{ github.workspace }}/.build"
echo ".build directory created."
# NOTE: If /home/runner does not exist, mkdir fails.
if [ -d "$HOME" ]; then
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok turns out the problem is github-action never caches when using a mac runner because the name of the directory here was wrong. I am thinking changing it to $HOME variable will fix. I will know soon.

@antazoey antazoey changed the title fix: issue where mkdir fails in cache-warning avoidance fix: caching did not work when using a macOS runner Jan 8, 2025
@antazoey antazoey changed the title fix: caching did not work when using a macOS runner feat: macOS runner support Jan 8, 2025
@antazoey antazoey merged commit 9f9a6f5 into main Jan 13, 2025
16 checks passed
@antazoey antazoey deleted the fix/mkdir-fail branch January 13, 2025 03:36
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.

3 participants