misc(ci): update workflow #617
Workflow file for this run
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" | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
main: | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: uninstall builtin homebrew on macOS | |
if: matrix.os == 'macos-latest' | |
run: | | |
sudo rm -rf /opt/homebrew | |
- name: setup zsh for ubuntu-latest | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt update -y | |
sudo apt install -y zsh | |
chsh -s $(which zsh) | |
- name: setup ${{ matrix.os }} | |
run: | | |
cp -r $GITHUB_WORKSPACE $HOME/dotfiles | |
cd $HOME/dotfiles | |
make | |
make brew | |
- run: | | |
source $HOME/.zshrc | |
make brew-base | |
brew doctor | |
shell: zsh {0} |