From 78ffc35b69838f11f931a87051310d95307a85da Mon Sep 17 00:00:00 2001 From: Vicente Eduardo Ferrer Garcia Date: Thu, 22 Feb 2024 22:27:37 +0100 Subject: [PATCH] Remove conficlting dependencies. --- .github/workflows/test.yml | 21 ++++++++++++++++++++- build.sh | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30ab780..cd9d46e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 diff --git a/build.sh b/build.sh index ba0cbea..795fea6 100755 --- a/build.sh +++ b/build.sh @@ -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