-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Repeat recipe for latest version of Xcode
- Loading branch information
1 parent
ea41648
commit 9dbb723
Showing
13 changed files
with
304 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,172 @@ | ||
name: "xxPROJECTxNAMExx CI" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'Source/**' | ||
- 'Tests/**' | ||
- '.github/workflows/**' | ||
- 'Package.swift' | ||
pull_request: | ||
paths: | ||
- 'Source/**' | ||
- 'Tests/**' | ||
- '.github/workflows/**' | ||
- 'Package.swift' | ||
|
||
concurrency: | ||
group: ci | ||
cancel-in-progress: true | ||
# Keep this up to date with https://github.com/xxPROJECTxNAMExx/xxPROJECTxNAMExx/blob/master/.github/workflows/ci.yml | ||
jobs: | ||
macOS_5_3: | ||
name: Test macOS 10.15 (5.3) | ||
runs-on: macOS-10.15 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.4.app/Contents/Developer | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: macOS 10.15 (5.3) | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx macOS" -destination "platform=macOS" clean test | xcpretty | ||
macOS_5_4: | ||
name: Test macOS 11 (5.4) | ||
runs-on: macOS-11 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_12.5.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: macOS 11 (5.4) | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx macOS" -destination "platform=macOS" clean test | xcpretty | ||
macOS_5_5: | ||
name: Test macOS 11 (5.5) | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: macOS 11 (5.5) | ||
run: set -o pipefail && arch -arch arm64e env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx macOS" -destination "platform=macOS" clean test | xcpretty | ||
Catalyst: | ||
name: Test Catalyst | ||
runs-on: macOS-11 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Catalyst | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx iOS" -destination "platform=macOS" clean test | xcpretty | ||
iOS: | ||
name: Test iOS 15 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
destination: ["OS=15.0,name=iPhone 13 Pro"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: iOS - ${{ matrix.destination }} | ||
run: set -o pipefail && arch -arch arm64e env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx iOS" -destination "${{ matrix.destination }}" clean test | xcpretty | ||
iOS_Concurrency: | ||
name: Test Swift Concurrency | ||
runs-on: macOS-11 | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.2.app/Contents/Developer | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
destination: ["OS=15.2,name=iPhone 13 Pro"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: iOS - ${{ matrix.destination }} | ||
run: set -o pipefail && env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx iOS" -destination "${{ matrix.destination }}" -enableThreadSanitizer NO clean test | xcpretty | ||
tvOS: | ||
name: Test tvOS | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
destination: ["OS=15.0,name=Apple TV"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: tvOS - ${{ matrix.destination }} | ||
run: set -o pipefail && arch -arch arm64e env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx tvOS" -destination "${{ matrix.destination }}" clean test | xcpretty | ||
watchOS: | ||
name: Test watchOS | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
destination: ["OS=8.0,name=Apple Watch Series 7 - 45mm"] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: watchOS - ${{ matrix.destination }} | ||
run: set -o pipefail && arch -arch arm64e env NSUnbufferedIO=YES xcodebuild -project "xxPROJECTxNAMExx.xcodeproj" -scheme "xxPROJECTxNAMExx watchOS" -destination "${{ matrix.destination }}" clean test | xcpretty | ||
SPM: | ||
name: Test with SPM | ||
env: | ||
DEVELOPER_DIR: /Applications/Xcode_13.1.app/Contents/Developer | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: SPM Test | ||
run: arch -arch arm64e swift test -c debug | ||
Linux: | ||
name: Linux | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: swift:5.5.1-focal | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: SPM Linux build | ||
run: swift build --build-tests -c debug | ||
Linux_Nightly: | ||
name: Linux Nightly | ||
runs-on: ubuntu-20.04 | ||
container: | ||
image: swiftlang/swift:nightly-focal | ||
timeout-minutes: 10 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: SPM Linux build | ||
run: swift build --build-tests -c debug | ||
Windows: | ||
name: Windows | ||
runs-on: windows-2019 | ||
timeout-minutes: 10 | ||
steps: | ||
- name: "Clone Project" | ||
uses: actions/checkout@v2 | ||
- uses: seanmiddleditch/gha-setup-vsdevenv@master | ||
- name: Install Swift | ||
run: | | ||
Install-Binary -Url "https://swift.org/builds/swift-5.5.1-release/windows10/swift-5.5.1-RELEASE/swift-5.5.1-RELEASE-windows10.exe" -Name "installer.exe" -ArgumentList ("-q") | ||
- name: Set Environment Variables | ||
run: | | ||
echo "SDKROOT=C:\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
echo "DEVELOPER_DIR=C:\Library\Developer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append | ||
- name: Adjust Paths | ||
run: | | ||
echo "C:\Library\Swift-development\bin;C:\Library\icu-67\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
echo "C:\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | ||
- name: Install Supporting Files | ||
run: | | ||
Copy-Item "$env:SDKROOT\usr\share\ucrt.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\ucrt\module.modulemap" | ||
Copy-Item "$env:SDKROOT\usr\share\visualc.modulemap" -destination "$env:VCToolsInstallDir\include\module.modulemap" | ||
Copy-Item "$env:SDKROOT\usr\share\visualc.apinotes" -destination "$env:VCToolsInstallDir\include\visualc.apinotes" | ||
Copy-Item "$env:SDKROOT\usr\share\winsdk.modulemap" -destination "$env:UniversalCRTSdkDir\Include\$env:UCRTVersion\um\module.modulemap" | ||
- name: SPM Windows build | ||
shell: cmd | ||
run: | | ||
cd ${{ github.workspace}} | ||
set SDKROOT=%SystemDrive%\Library\Developer\Platforms\Windows.platform\Developer\SDKs\Windows.sdk | ||
%SystemDrive%\Library\Developer\Toolchains\unknown-Asserts-development.xctoolchain\usr\bin\swift-build.exe --build-tests -c debug -Xlinker /INCREMENTAL:NO -v | ||
if not exist .build\x86_64-unknown-windows-msvc\debug\xxPROJECTxNAMExx.swiftmodule exit 1 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
xxPROJECTxNAMExx/Tests/xxPROJECTxNAMExxTests/XCTestManifests.swift
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.