Skip to content

Commit fa27bc7

Browse files
committed
Moved logic for parsing Packages.swift & refactored code; note that we need to install the deb files after parsing Package.swift files... otherwise, they are just downloaded but not installed.
1 parent 41b8247 commit fa27bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/compile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ restore_cache
161161
# ----------------------------------------------------------------------------- #
162162
# Parse Package.swift to determine any required system level dependencies. #
163163
# ----------------------------------------------------------------------------- #
164+
cd $BUILD_DIR
164165
status "Fetching Swift packages and parsing Package.swift files..."
165166
swift package fetch
166167
PACKAGES_TO_INSTALL=($(find . -type f -name "Package.swift" | xargs egrep -r "Apt *\(" | sed -e 's/^.*\.Apt *( *" *//' -e 's/".*$//' | sort | uniq))
@@ -180,7 +181,6 @@ install_packages
180181
# ----------------------------------------------------------------------------- #
181182
# Build/compile Swift application #
182183
# ----------------------------------------------------------------------------- #
183-
cd $BUILD_DIR
184184
status "Building Package..."
185185
if [ -f $BUILD_DIR/.swift-build-options-linux ]; then
186186
# Expand variables in loaded string

0 commit comments

Comments
 (0)