Skip to content

fix(cd): add GNU tar setup for self-hosted macOS runner - #77

Merged
Gaubee merged 1 commit into
mainfrom
fix/cd-gtar
Dec 22, 2025
Merged

Gaubee merged 1 commit into
mainfrom
fix/cd-gtar

Conversation

@Gaubee

@Gaubee Gaubee commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

Problem

The actions/upload-pages-artifact action requires GNU tar (gtar), but macOS uses BSD tar by default. This causes the CD to fail on self-hosted macOS runners.

Solution

Add a step to install gnu-tar via Homebrew if not already installed, and add it to the PATH.

Error fixed

/Users/kzf/Development/actions-runner/_work/_temp/xxx.sh: line 3: gtar: command not found

The actions/upload-pages-artifact action requires GNU tar (gtar),
but macOS uses BSD tar by default. This adds a step to install
gnu-tar via Homebrew if not already installed.
@Gaubee
Gaubee merged commit 4fc4184 into main Dec 22, 2025
5 checks passed
@Gaubee
Gaubee deleted the fix/cd-gtar branch January 4, 2026 07:23
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