Skip to content

Commit db88b30

Browse files
committed
Add OpenObservation setup to CI pipeline
- Create openobservation_setup.sh script to clone OpenObservation repository - Update darwin_setup_build.sh to include OpenObservation setup - Fix CI failures caused by missing local OpenObservation dependency
1 parent bb0ca9e commit db88b30

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Scripts/CI/darwin_setup_build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ cd $REPO_ROOT
1111
Scripts/CI/opencoregraphics_setup.sh
1212
Scripts/CI/openattributegraph_setup.sh
1313
Scripts/CI/openrenderbox_setup.sh
14+
Scripts/CI/openobservation_setup.sh
1415
Scripts/CI/framework_setup.sh
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# A `realpath` alternative using the default C implementation.
4+
filepath() {
5+
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
6+
}
7+
8+
REPO_ROOT="$(dirname $(dirname $(dirname $(filepath $0))))"
9+
cd $REPO_ROOT/..
10+
11+
if [ ! -d OpenObservation ]; then
12+
gh repo clone OpenSwiftUIProject/OpenObservation
13+
else
14+
echo "OpenObservation already exists, updating it."
15+
cd OpenObservation
16+
git fetch --all --quiet
17+
git stash --quiet || true
18+
git reset --hard --quiet origin/main
19+
fi

0 commit comments

Comments
 (0)