Skip to content

Commit d4bd665

Browse files
committed
Run apt-get update before apt-get install in CI
1 parent fe7dbe7 commit d4bd665

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,23 @@ jobs:
4444
- name: Install dependencies
4545
shell: bash
4646
run: |-
47+
source "./scripts/common.sh"
48+
4749
# Ensure consistent versions of tools we use. MacOS uses an outdated version of bash, for
4850
# example.
4951
case "${OSTYPE}" in
5052
win*|msys*)
51-
choco install xsltproc
53+
run <<< "choco install xsltproc"
5254
;;
5355
darwin*)
54-
brew install bash libxslt
56+
run <<< "brew install bash libxslt"
5557
;;
5658
linux*)
57-
sudo apt-get install xsltproc -qy
59+
run <<< "sudo apt-get update -q"
60+
run <<< "sudo apt-get install xsltproc -qy"
5861
;;
5962
*)
60-
echo "::warning:: Unknown OS type '${OSTYPE}'. Update build.yaml with a new case."
63+
warn "Unknown OS type '${OSTYPE}'. Update build.yaml with a new case."
6164
;;
6265
esac
6366

0 commit comments

Comments
 (0)