Skip to content

Instantly share code, notes, and snippets.

@tamakiii
Last active November 21, 2019 12:16
Show Gist options
  • Save tamakiii/19c3748e2e4917c2f13d26dc4b71cda6 to your computer and use it in GitHub Desktop.
Save tamakiii/19c3748e2e4917c2f13d26dc4b71cda6 to your computer and use it in GitHub Desktop.
name: CI
on: [push]
jobs:
test:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Get brew cache directory
id: brew-cache
run: echo "::set-output name=dir::$(brew --cache)/downloads"
- name: Brew cache
uses: actions/cache@v1
with:
path: ${{ steps.brew-cache.outputs.dir }}
key: ${{ runner.os }}-${{ hashFiles('Brewfile') }}
- name: Brew config
run: brew config
- name: Uninstall default node
run: brew uninstall node@12
- name: Make install
run: |
make -f brew.mk
OSTYPE="" bash etc/init/init.sh
- name: Cleanup some brew downloads
run: cd ${{ steps.brew-cache.outputs.dir }} && ls -lsS | head -n 10 | awk '{ print $10 }' | xargs rm -rf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment