File tree 1 file changed +11
-1
lines changed
1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 20
20
fail-fast : true
21
21
matrix :
22
22
include :
23
- - os : macos-11
23
+ - os : macos-latest
24
24
- os : ubuntu-latest
25
25
container : swift:6.0.3
26
26
- os : ubuntu-latest
29
29
container : ${{ matrix.container }}
30
30
steps :
31
31
- uses : actions/checkout@v4
32
+ - name : Install OSS Swift on macOS
33
+ if : ${{ startsWith(matrix.os, 'macos') }}
34
+ run : |
35
+ SWIFT_TOOLCHAIN_CHANNEL=swift-6.0.3-release;
36
+ SWIFT_TOOLCHAIN_TAG="swift-6.0.3-RELEASE";
37
+ pkg="$(mktemp -d)/InstallMe.pkg"; set -ex;
38
+ curl -o "$pkg" "https://download.swift.org/$SWIFT_TOOLCHAIN_CHANNEL/xcode/$SWIFT_TOOLCHAIN_TAG/$SWIFT_TOOLCHAIN_TAG-osx.pkg";
39
+ installer -pkg "$pkg" -target CurrentUserHomeDirectory;
40
+ TOOLCHAINS="$(plutil -extract CFBundleIdentifier raw ~/Library/Developer/Toolchains/$SWIFT_TOOLCHAIN_TAG.xctoolchain/Info.plist)";
41
+ echo "TOOLCHAINS=$TOOLCHAINS" >> $GITHUB_ENV
32
42
- run : swift --version
33
43
- uses : ./
34
44
- run : |
You can’t perform that action at this time.
0 commit comments