Ignore deps in cleanup. #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Test Homebrew MetaCall | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-12, macos-13, macos-14] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Clean up previous dependencies in order to avoid conflicts with brew | |
- name: Clean | |
run: | | |
# Uninstall NodeJS | |
brew uninstall --force --ignore-dependencies 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 --ignore-dependencies python | |
brew unlink python | |
sudo rm -rf /usr/local/bin/python3* | |
# Clean brew | |
brew cleanup | |
# Build Homebrew recipe | |
- name: Build | |
run: | | |
./build.sh | |
# Remove build files | |
find /private/tmp/ -type d -name "metacall*" -exec rm -rf {} \; | |
# Test Homebrew recipe | |
- name: Test | |
run: ./test.sh |