Skip to content

Commit

Permalink
adjust the prefix variable for accelerator builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bedroge committed Sep 19, 2024
1 parent 9d08238 commit 05be1a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bot/check-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -457,8 +457,14 @@ if [[ ! -z ${TARBALL} ]]; then
repo_version=$(cfg_get_value "repository" "repo_version")
os_type=$(cfg_get_value "architecture" "os_type")
software_subdir=$(cfg_get_value "architecture" "software_subdir")
accelerator=$(cfg_get_value "architecture" "accelerator")
prefix="${repo_version}/software/${os_type}/${software_subdir}"

# if we build for an accelerator, the prefix is different
if [[ ! -z ${accelerator} ]]; then
prefix="${prefix}/accel/${accelerator}"
fi

# extract directories/entries from tarball content
modules_entries=$(grep "${prefix}/modules" ${tmpfile})
software_entries=$(grep "${prefix}/software" ${tmpfile})
Expand Down

0 comments on commit 05be1a2

Please sign in to comment.