Skip to content

Commit 8d0ee9d

Browse files
committed
ci: test on alpine
1 parent 39f95f5 commit 8d0ee9d

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

.config/yadm/bootstrap.d/brew.sh

+6-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
#
33
# Install Homebrew and packages
44

5+
if [ -n "${CI:-}" ]; then
6+
debugw "Skipping due to \$CI"
7+
return
8+
fi
9+
510
export PATH="/opt/homebrew/bin:/usr/local/bin:/home/linuxbrew/.linuxbrew/bin${PATH+:$PATH}"
611
if ! has brew; then
712
debug "Installing Homebrew"
@@ -10,9 +15,7 @@ fi
1015

1116
debug "Installing Homebrew packages"
1217
export HOMEBREW_BUNDLE_FILE=~/.config/brew/Brewfile
13-
if [ -n "${CI:-}" ]; then
14-
debugw "Skipping due to \$CI"
15-
elif ! has yadm || ! brew bundle check &>/dev/null; then
18+
if ! has yadm || ! brew bundle check &>/dev/null; then
1619
brew bundle install --no-lock
1720
! has rustup || RUSTUP_HOME=~/.local/share/rustup rustup default stable
1821
fi

.github/workflows/ci.yaml

+11-3
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,19 @@ jobs:
3636

3737
bootstrap:
3838
runs-on: ${{ matrix.os }}-latest
39+
container: ${{ matrix.container }}
3940
strategy:
4041
fail-fast: false
4142
matrix:
42-
os: [macos, ubuntu]
43+
# os: [macos, ubuntu]
44+
include:
45+
- os: macos
46+
- os: ubuntu
47+
- os: ubuntu
48+
container: alpine
4349
steps:
44-
- run: curl -Lo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
45-
- run: chmod a+x /usr/local/bin/yadm
50+
# - run: curl -Lo /usr/local/bin/yadm https://github.com/TheLocehiliosan/yadm/raw/master/yadm
51+
# - run: chmod a+x /usr/local/bin/yadm
52+
- run: apk add bash curl git
53+
if: matrix.container == 'alpine'
4654
- run: curl -fsSL https://raw.githubusercontent.com/${{ github.repository }}/${{ github.sha }}/bootstrap | HOME=$PWD/tmp bash

0 commit comments

Comments
 (0)