Skip to content

Commit

Permalink
Remove conficlting dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Feb 22, 2024
1 parent 551cdd4 commit 78ffc35
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,27 @@ jobs:
with:
fetch-depth: 0

# Clean up previous dependencies in order to avoid conflicts with brew
- name: Clean
run: |
# Uninstall NodeJS
brew uninstall --force node
brew unlink node
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,include,share/man}/{npm*,node*,corepack*,man1/node*}
# Uninstall Python
brew uninstall --force python
brew unlink python
sudo rm -rf /usr/local/bin/python3*
# Clean brew
brew cleanup
# Build Homebrew recipe
- name: Build
run: ./build.sh
run: |
./build.sh
# Remove build files
find /private/tmp/ -type d -name "metacall*" -exec rm -rf {} \;
# Test Homebrew recipe
- name: Test
run: ./test.sh
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ fi

# Build metacall brew recipe
export HOMEBREW_NO_AUTO_UPDATE=1
brew install ./metacall.rb --build-from-source --overwrite --no-binaries -v
brew install ./metacall.rb --build-from-source --overwrite -v

0 comments on commit 78ffc35

Please sign in to comment.