Skip to content

Commit aba8b0e

Browse files
committed
Support for a custom path to Swiftly on GitHub runners
1 parent a45d30e commit aba8b0e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vminitd/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ SWIFT_SDK_PATH := /tmp/$(notdir $(SWIFT_SDK_URL))
2323

2424
SWIFTLY_URL := https://download.swift.org/swiftly/darwin/swiftly.pkg
2525
SWIFTLY_FILENAME := $(notdir $(SWIFTLY_URL))
26-
SWIFTLY_BIN_DIR ?= ~/.swiftly/bin
26+
SWIFTLY_BIN_DIR ?= $(if $(wildcard $(HOME)/.swiftly/bin),$(HOME)/.swiftly/bin,/opt/swiftly/bin)
2727
SWIFT ?= $(SWIFTLY_BIN_DIR)/swift
2828
BUILD_BIN_DIR := $(shell $(SWIFT) build -c $(BUILD_CONFIGURATION) $(SWIFT_CONFIGURATION) --show-bin-path)
2929

0 commit comments

Comments
 (0)