Skip to content

Commit 0de618f

Browse files
committed
try fixing test execution
1 parent 387317b commit 0de618f

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

.github/workflows/distribute.yaml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,26 @@ jobs:
134134
135135
# Define the path to the executable. On Windows, the shell is bash (Git Bash),
136136
# so we don't need to add a '.exe' or other suffix.
137+
if
138+
139+
# Declare a variable for the executable path
140+
EXECUTABLE=""
141+
142+
# Correctly determine the executable path for each platform
143+
if [[ "${{ matrix.platform }}" == "windows" ]]; then
144+
EXECUTABLE="$APP_DIR/sirius.exe"
145+
elif [[ "${{ matrix.platform }}" == "macos" ]]; then
146+
# Standard path for an executable inside a macOS .app bundle
147+
EXECUTABLE="$APP_DIR/sirius.app/Contents/MacOS/sirius"
148+
else # This covers the "linux" platform
137149
EXECUTABLE="$APP_DIR/bin/sirius"
138-
139-
# Add execute permissions for Linux and macOS
150+
fi
151+
152+
# Add execute permissions for non-Windows platforms
140153
if [[ "${{ matrix.platform }}" != "windows" ]]; then
141-
echo "Setting execute permissions on $EXECUTABLE"
142-
chmod +x "$EXECUTABLE"
154+
echo "Setting execute permissions on $EXECUTABLE"
155+
chmod +x "$EXECUTABLE"
143156
fi
144-
145157
# Run the self-test command
146158
echo "Executing: $EXECUTABLE selftest"
147159
"$EXECUTABLE" selftest

0 commit comments

Comments
 (0)