File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -18,12 +18,16 @@ jobs:
18
18
- uses : actions/checkout@v4
19
19
- name : Install Swift using Swiftly
20
20
run : |
21
+ # Download Swiftly package
21
22
curl -O https://download.swift.org/swiftly/darwin/swiftly.pkg
22
- sudo installer -pkg swiftly.pkg -target /
23
- export PATH="/usr/local/bin:$PATH"
24
- swiftly init --quiet-shell-followup
25
- . ~/.swiftly/env.sh
23
+ # Install to the current user's home directory to avoid permission issues
24
+ installer -pkg swiftly.pkg -target CurrentUserHomeDirectory
25
+ # Initialize Swiftly in the user's environment
26
+ ~/.swiftly/bin/swiftly init --quiet-shell-followup
27
+ source ~/.swiftly/env.sh
28
+ # Install Swift 6.1
26
29
swiftly install 6.1
30
+ # Verify installation
27
31
swift --version
28
32
- name : Build
29
33
run : swift build -v
You can’t perform that action at this time.
0 commit comments