Browse Source

CI: Add support for dependency revisions to Linux CI builds

PatTheMav 2 years ago
parent
commit
773e45bfa9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .github/scripts/utils.zsh/setup_linux

+ 3 - 3
.github/scripts/utils.zsh/setup_linux

@@ -28,9 +28,9 @@ local deps_baseurl
 local deps_label
 local deps_hash
 
-IFS=';' read -r deps_version deps_baseurl deps_label deps_hash <<< \
+IFS=';' read -r deps_version deps_baseurl deps_label deps_hash deps_revision <<< \
   "$(jq -r --arg target "${target}" \
-    '.dependencies["cef"] | {version, baseUrl, "label", "hash": .hashes[$target]} | join(";")' \
+    '.dependencies["cef"] | {version, baseUrl, "label", "hash": .hashes[$target], "revision": .revision[$target]} | join(";")' \
     ${buildspec_file})"
 
 if (( ! deps_version )) {
@@ -40,7 +40,7 @@ if (( ! deps_version )) {
 log_group 'Setting up pre-built Chromium Embedded Framework...'
 
 pushd ${project_root}/.deps
-local _filename="cef_binary_${deps_version}_${target//-/_}.tar.xz"
+local _filename="cef_binary_${deps_version}_${target//-/_}${deps_revision:+"_v${deps_revision}"}.tar.xz"
 local _url=${deps_baseurl}/${_filename}
 local _target="cef_binary_${deps_version}_${target//-/_}"
 typeset -g CEF_VERSION=${deps_version}