Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Updated Build Project to match build.sh locally
Browse files Browse the repository at this point in the history
  • Loading branch information
riigess authored May 27, 2024
1 parent 0157dff commit 5bd7f9d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,15 @@ jobs:
run:
mkdir build;
cmake CMakeLists.txt -S src -B build;
mv build/FaceDetection build/FaceDetection-"$(uname)"
if [ -f build/FaceDetection ]; then
echo "FaceDetection built. Changing filename..";
mv build/FaceDetection build/FaceDetection-"$(uname)";
else
cd build;
make;
mv FaceDetection FaceDetection-"$(uname)";
cd ..;
fi;
- name: Publish Release to Tag
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -75,7 +83,7 @@ jobs:
echo "Configuring for $(RUNNER_OS) [$(uname)].";
if [[ "$(gh release view $tag 2>&1)" == "release not found" ]]; then
echo "Release not found. Creating release.";
gh release create "$tag" --repo="$GITHUB_REPOSITORY" --title="$(tag#v)" --generate-notes ./build/FaceDetection-"$(uname)";
gh release create "$tag" --repo="$GITHUB_REPOSITORY" --title="$(tag#v)" --generate-notes build/FaceDetection-"$(uname)";
else
echo "Release found. Appending files to release.";
gh release upload "$tag" build/FaceDetection-"$(uname)";
Expand Down

0 comments on commit 5bd7f9d

Please sign in to comment.