Skip to content

Commit

Permalink
ci: debug
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Jul 11, 2023
1 parent 8e19381 commit fa111de
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 10 deletions.
7 changes: 4 additions & 3 deletions .config/yadm/bootstrap.d/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ if ! has brew; then
NONINTERACTIVE=1 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi

debug "Checking Homebrew packages"
debug "Installing Homebrew packages"
export HOMEBREW_BUNDLE_FILE=~/.config/brew/Brewfile
if ! has yadm || ! brew bundle check &>/dev/null; then
debug "Installing Homebrew packages"
if [ -n "${CI:-}" ]; then
debug "Skipped due to \$CI"
elif ! has yadm || ! brew bundle check &>/dev/null; then
brew bundle install --no-lock
fi

Expand Down
24 changes: 17 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,22 @@ jobs:
run: brew install fish
- name: Lint
uses: pre-commit/action@v3.0.0
# - name: Run bootstrap
# run: DEBUG=1 bash -x bootstrap
bootstrap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: curl -fLo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm && chmod a+x /usr/local/bin/yadm
- run: echo "DEBUG=1" >> $GITHUB_ENV
- run: echo "HOME=$(mktemp -d)" >> $GITHUB_ENV
# - run: brew install yadm
# - run: yadm clone --bootstrap https://github.com/branchvincent/dotfiles
# - run: yadm status
# - run: yadm rev-parse --show-toplevel
- run: echo "HOME=$PWD/tmp" >> $GITHUB_ENV
# - run: DEBUG=1 bash -x ./bootstrap
- run: tree ~/.config || true
- run: yadm clone --bootstrap https://github.com/branchvincent/dotfiles
- run: tree ~/.config/yadm || true
- run: |
cd $(yadm rev-parse --show-toplevel)
pwd
yadm status
# - run: |
# cd ~
# bash -x yadm clone --bootstrap https://github.com/branchvincent/dotfiles
# - run: yadm --yadm-bootstrap $HOME/.config/yadm/bootstrap bootstrap

0 comments on commit fa111de

Please sign in to comment.