aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2023-01-12 05:52:28 +0100
committerNRK <nrk@disroot.org>2023-01-12 05:52:28 +0100
commita924fe004df5e27fb0e35396e6a785f2d0c6fcf6 (patch)
tree222e953a380d4f659f22f4f91d52a929d0e9dc64
parent34d42951032c6bad6057d9c82893add1c94ade38 (diff)
downloadnsxiv-a924fe004df5e27fb0e35396e6a785f2d0c6fcf6.tar.zst
[ci]: fix things (#400)
for the spellcheck issue, the solution was to just bypass the system package manager and use pip. and the macos workaround is taken from here: https://github.com/actions/setup-python/issues/577 Reviewed-on: https://codeberg.org/nsxiv/nsxiv/pulls/400 Reviewed-by: explosion-mental <explosion-mental@noreply.codeberg.org>
-rw-r--r--.github/workflows/build.yml3
-rw-r--r--etc/woodpecker/spell.yml3
2 files changed, 4 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 50ddebf..4619bb7 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -42,7 +42,8 @@ jobs:
- name: dep
run: |
brew update
- brew install imlib2 libx11 libxft libexif giflib webp
+ # see: https://github.com/actions/setup-python/issues/577
+ brew install imlib2 libx11 libxft libexif giflib webp || true
- name: build
run: |
# libinotify-kqueue isn't available on homebrew
diff --git a/etc/woodpecker/spell.yml b/etc/woodpecker/spell.yml
index a184092..a6b71d8 100644
--- a/etc/woodpecker/spell.yml
+++ b/etc/woodpecker/spell.yml
@@ -5,5 +5,6 @@ pipeline:
spell-check:
image: alpine:edge
commands: |
- apk add --no-cache -X http://dl-cdn.alpinelinux.org/alpine/edge/testing py3-codespell git >/dev/null
+ apk add --no-cache python3 py3-pip git
+ pip install codespell
git ls-files | sed '/\.png$/d' | xargs codespell