Skip to content

Update build.sh

Update build.sh #5

Workflow file for this run

name: Build and Test Homebrew MetaCall
on:
push:
pull_request:
workflow_dispatch:
jobs:
test:
strategy:
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
- name: Clean up existing dependencies for avoiding conflicts
run: |
# Remove all local files related to npm/node to avoid conflict
sudo rm -rf /usr/local/bin/node
sudo rm -rf /usr/local/bin/npm
sudo rm -rf /usr/local/bin/npx
sudo rm -rf /usr/local/include/node
sudo rm -rf /usr/local/lib/dtrace/node.d
sudo rm -rf /usr/local/lib/node_modules/npm
sudo rm -rf /usr/local/share/doc/node
sudo rm -rf /usr/local/share/man/man1/node.1
sudo rm -rf /usr/local/share/systemtap/tapset/node.stp
# Uninstall npm and node globally
brew uninstall npm
brew uninstall node
brew unlink node@16
# Remove all files related to node
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf /usr/local/include/node
sudo rm -rf /usr/local/lib/node
sudo rm -rf /usr/local/bin/corepack
- name: Build
run: ./build.sh
- name: Test
run: ./test.sh