Pass --no-cache to apk even in CI

This commit is contained in:
Taiki Endo
2023-02-07 22:16:25 +09:00
parent c5ba83b5c8
commit e1d5d01924
2 changed files with 3 additions and 3 deletions

View File

@@ -129,7 +129,7 @@ jobs:
- name: Install requirements (alpine) - name: Install requirements (alpine)
run: | run: |
set -eux set -eux
apk add bash cargo apk --no-cache add bash cargo
shell: sh shell: sh
if: startsWith(matrix.container, 'alpine') if: startsWith(matrix.container, 'alpine')
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@@ -275,9 +275,9 @@ snap_install() {
} }
apk_install() { apk_install() {
if type -P doas &>/dev/null; then if type -P doas &>/dev/null; then
doas apk add --no-cache "$@" doas apk --no-cache add "$@"
else else
apk add --no-cache "$@" apk --no-cache add "$@"
fi fi
} }
dnf_install() { dnf_install() {