File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 2020 fail-fast : true
2121 matrix :
2222 include :
23- - os : macos-11
23+ - os : macos-latest
2424 - os : ubuntu-latest
2525 container : swift:6.0.3
2626 - os : ubuntu-latest
2929 container : ${{ matrix.container }}
3030 steps :
3131 - 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
3242 - run : swift --version
3343 - uses : ./
3444 - run : |
You can’t perform that action at this time.
0 commit comments