Skip to content

Commit

Permalink
ci: test on alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
branchvincent committed Sep 8, 2024
1 parent 39f95f5 commit 3179f07
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .config/yadm/bootstrap.d/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
#
# Install Homebrew and packages

if [ -n "${CI:-}" ]; then
debugw "Skipping due to \$CI"
return
fi

export PATH="/opt/homebrew/bin:/usr/local/bin:/home/linuxbrew/.linuxbrew/bin${PATH+:$PATH}"
if ! has brew; then
debug "Installing Homebrew"
Expand All @@ -10,9 +15,7 @@ fi

debug "Installing Homebrew packages"
export HOMEBREW_BUNDLE_FILE=~/.config/brew/Brewfile
if [ -n "${CI:-}" ]; then
debugw "Skipping due to \$CI"
elif ! has yadm || ! brew bundle check &>/dev/null; then
if ! has yadm || ! brew bundle check &>/dev/null; then
brew bundle install --no-lock
! has rustup || RUSTUP_HOME=~/.local/share/rustup rustup default stable
fi
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,16 @@ jobs:

bootstrap:
runs-on: ${{ matrix.os }}-latest
container: ${{ matrix.container }}
strategy:
fail-fast: false
matrix:
os: [macos, ubuntu]
include:
- os: macos
- os: ubuntu
- os: ubuntu
container: alpine
steps:
- run: curl -Lo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
- run: chmod a+x /usr/local/bin/yadm
- run: apk add bash curl git
if: matrix.container == 'alpine'
- run: curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/bootstrap | HOME=$PWD/tmp bash

0 comments on commit 3179f07

Please sign in to comment.