Skip to content

Commit

Permalink
Test print out content, and don't use verbose debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
ychin committed Oct 8, 2023
1 parent 73e2576 commit bf335a6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/actions/universal-package/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ runs:
# Patch the official Homebrew formula to explicitly build for min deployment target
brew cat ${formula} | \
sed '/^[[:blank:]]*def install$/a\'$'\n ENV["MACOSX_DEPLOYMENT_TARGET"] = "'${MACOSX_DEPLOYMENT_TARGET}$'"\n' >${formula}.rb | \
sed '/^[[:blank:]]*def install$/a\'$'\n ENV["MACOSX_DEPLOYMENT_TARGET"] = "'${MACOSX_DEPLOYMENT_TARGET}$'"\n' | \
sed '/^[[:blank:]]*def install$/a\'$'\n ENV["CFLAGS"] = "-arch x86_64 -arch arm64"\n' >${formula}.rb
#sed '/^[[:blank:]]*def install$/a\'$'\n ENV["LDFLAGS"] = "-arch x86_64 -arch arm64"\n' >${formula}.rb
Expand All @@ -33,6 +33,8 @@ runs:
echo '::endgroup::'
cat ${formula}.rb
- name: Cache keg
id: cache-keg
uses: actions/cache@v3
Expand All @@ -47,7 +49,7 @@ runs:
formula=${{ inputs.formula }}
# This will be a no-op if formula was cached
brew install -vd --formula -s ./${formula}.rb
brew install --formula -s ./${formula}.rb
# If formula was cached, this step is necessary to relink it to /usr/local/
brew unlink ${formula} && brew link ${formula}
Expand Down

0 comments on commit bf335a6

Please sign in to comment.