-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (36 loc) · 1.33 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: CI
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: macos-14
steps:
- uses: actions/checkout@v4
# remove the packages that are already in the environment so we can install them.
# relink brew python packages - these are already installed but overwritten.
# we need them because they are dependencies of packages in the Brewfile
# see https://github.com/actions/runner-images
- name: reset runner environment
run: |
rm -f /usr/local/bin/aws
rm -f /usr/local/bin/aws_completer
rm -f /usr/local/bin/go
rm -f /usr/local/bin/gofmt
brew unlink [email protected] [email protected]
brew link --overwrite [email protected] [email protected]
rm "$HOME/.gitconfig"
brew unlink git
- name: fix build to work with setup-mac
run: |
mkdir -p "$HOME/.zshrc.d"
touch "$HOME/.zshrc.d/auth.plugin.zsh"
touch "$HOME/.zshrc.d/aws-doctor.plugin.zsh"
touch "$HOME/.zshrc.d/functions.plugin.zsh"
touch "$HOME/.zshrc.d/git-doctor.plugin.zsh"
touch "$HOME/.zshrc.d/setup.plugin.zsh"
- name: install.sh
run: ./install.sh
- name: Setup tmate session
if: ${{ github.event_name == 'workflow_dispatch' && failure() }}
uses: mxschmitt/action-tmate@v3