-
Notifications
You must be signed in to change notification settings - Fork 41
94 lines (86 loc) · 2.58 KB
/
pull_request.yml
File metadata and controls
94 lines (86 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: Pull request
permissions:
contents: read
on:
pull_request:
types: [opened, reopened, synchronize]
jobs:
tests_with_docker_embedded_swift:
name: Test Embedded Swift SDKs
uses: ./.github/workflows/swift_package_test.yml
with:
# Wasm
enable_linux_checks: false
enable_macos_checks: false
enable_windows_checks: false
wasm_sdk_pre_build_command: |
cd tests/TestPackage
enable_embedded_wasm_sdk_build: true
tests_with_docker:
name: Test with Docker
uses: ./.github/workflows/swift_package_test.yml
with:
# Linux
linux_os_versions: '["jammy", "rhel-ubi9", "amazonlinux2"]'
linux_host_archs: '["x86_64", "aarch64"]'
linux_build_command: |
cd tests/TestPackage
swift build
linux_static_sdk_pre_build_command: |
cd tests/TestPackage
enable_linux_static_sdk_build: true
# Wasm
wasm_sdk_pre_build_command: |
cd tests/TestPackage
enable_wasm_sdk_build: true
# Windows
windows_build_command: |
cd tests/TestPackage
Invoke-Program swift build
enable_windows_docker: true
tests_without_docker:
name: Test without Docker
uses: ./.github/workflows/swift_package_test.yml
with:
# Skip Linux which doesn't currently support docker-less workflow
enable_linux_checks: false
# Android
android_sdk_pre_build_command: |
cd tests/TestPackage
enable_android_sdk_build: true
enable_android_sdk_checks: true
android_ndk_versions: "[\"r28c\"]"
# Windows
windows_build_command: |
cd tests/TestPackage
Invoke-Program swift build
enable_windows_docker: false
windows_os_versions: '["windows-2022", "windows-11-arm"]'
tests_macos:
name: Test
uses: ./.github/workflows/swift_package_test.yml
with:
enable_linux_checks: false
enable_windows_checks: false
# macOS
enable_macos_checks: true
macos_build_command: |
cd tests/TestPackage
xcrun swift build
build_tests_ios:
name: Build iOS Tests
uses: ./.github/workflows/swift_package_test.yml
with:
enable_linux_checks: false
enable_windows_checks: false
# iOS
enable_ios_checks: true
ios_build_command: |
cd tests/TestPackage
xcodebuild -quiet -scheme TestPackage-Package -destination "generic/platform=ios" build
soundness:
name: Soundness
uses: ./.github/workflows/soundness.yml
with:
api_breakage_check_enabled: false
license_header_check_project_name: "Swift.org"