Skip to content

Cleanup ruby.

Cleanup ruby. #34

Workflow file for this run

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 cleanup -s node
brew cleanup --prune-prefix
# Uninstall Python
brew uninstall --force --ignore-dependencies python
brew cleanup -s python
brew cleanup --prune-prefix
# Uninstall Ruby
brew uninstall --force --ignore-dependencies ruby
brew cleanup -s ruby
brew cleanup --prune-prefix
# 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