Skip to content

Commit

Permalink
ci: Always checkout sha in build_autoinst.sh
Browse files Browse the repository at this point in the history
There shouldn't be a case where the sha deviates, and if there's a case
for it let's make it explicit.
  • Loading branch information
kalikiana committed Sep 28, 2021
1 parent 44df680 commit 9cc495e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/build_autoinst.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
set -ex

destdir=${1:-../os-autoinst}
sha=${2}
sha=${2:-$(cat ./autoinst.sha)}

echo Building os-autoinst $destdir $sha
git clone https://github.com/os-autoinst/os-autoinst.git "$destdir"
( cd "$destdir"
[ -z "$sha" ] || git checkout $sha
git checkout $sha
cmake -G Ninja -DCMAKE_BUILD_TYPE=Release .
ninja symlinks
)

0 comments on commit 9cc495e

Please sign in to comment.