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 e5db9dc
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 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
26 changes: 18 additions & 8 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: yadm --yadm-bootstrap $HOME/.config/yadm/bootstrap bootstrap
# - run: echo "HOME=$(mktemp -d)" >> $GITHUB_ENV
# - run: DEBUG=1 bash -x ./bootstrap
- run: tree ~/.config
- run: yadm clone --bootstrap https://github.com/branchvincent/dotfiles
- run: tree ~/.config/yadm
- run: |
cd ~
bash -x yadm clone --bootstrap https://github.com/branchvincent/dotfiles
- run: |
cd $(yadm rev-parse --show-toplevel)
pwd
yadm status
- run: yadm --yadm-bootstrap $HOME/.config/yadm/bootstrap bootstrap

0 comments on commit e5db9dc

Please sign in to comment.