Add CI for brew installs #1
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: Brew CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
darwin-arm64: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: brew install --build-from-source Formula/buf.rb | |
- run: buf --version | |
darwin-x86_64: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- run: brew install --build-from-source Formula/buf.rb | |
- run: buf --version | |
# Linux arm64 is not supported by Homebrew: | |
# https://docs.brew.sh/Homebrew-on-Linux#arm-unsupported | |
linux-x86_64: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Homebrew | |
uses: Homebrew/actions/setup-homebrew@master | |
- run: brew install --build-from-source Formula/buf.rb | |
- run: buf --version |