Skip to content

Add workflow to build packages for iOS. #259

Add workflow to build packages for iOS.

Add workflow to build packages for iOS. #259

Workflow file for this run

name: Pull request
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

Check failure on line 10 in .github/workflows/pull_request.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pull_request.yml

Invalid workflow file

error parsing called workflow ".github/workflows/pull_request.yml" -> "./.github/workflows/swift_package_test.yml" : (Line: 235, Col: 24): Unexpected symbol: '??'. Located at position 41 within expression: fromJson(inputs.ios_host_xcode_versions ?? inputs.macos_xcode_versions), (Line: 235, Col: 24): Unexpected value '${{ fromJson(inputs.ios_host_xcode_versions ?? inputs.macos_xcode_versions) }}', (Line: 236, Col: 21): Unexpected symbol: '??'. Located at position 35 within expression: fromJson(inputs.ios_host_versions ?? inputs.macos_versions), (Line: 236, Col: 21): Unexpected value '${{ fromJson(inputs.ios_host_versions ?? inputs.macos_versions) }}', (Line: 237, Col: 15): Unexpected symbol: '??'. Located at position 32 within expression: fromJson(inputs.ios_host_archs ?? inputs.macos_archs), (Line: 237, Col: 15): Unexpected value '${{ fromJson(inputs.ios_host_archs ?? inputs.macos_archs) }}', (Line: 239, Col: 13): Unexpected symbol: '??'. Located at position 49 within expression: fromJson(inputs.ios_host_exclude_xcode_versions ?? inputs.macos_exclude_xcode_versions), (Line: 239, Col: 13): Unexpected value '${{ fromJson(inputs.ios_host_exclude_xcode_versions ?? inputs.macos_exclude_xcode_versions) }}'
with:
# Wasm
enable_linux_checks: false
enable_macos_checks: false
enable_windows_checks: false
wasm_sdk_pre_build_command: |
mkdir MyPackage
cd MyPackage
swift package init --type library
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_build_command: |
mkdir MyPackage
cd MyPackage
swift package init --type library
swift build
linux_static_sdk_pre_build_command: |
mkdir MyPackage
cd MyPackage
swift package init --type library
enable_linux_static_sdk_build: true
# Wasm
wasm_sdk_pre_build_command: |
mkdir MyPackage
cd MyPackage
swift package init --type library
enable_wasm_sdk_build: true
# Windows
windows_build_command: |
mkdir MyPackage
cd MyPackage
Invoke-Program swift package init --type library
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
# Windows
windows_build_command: |
mkdir MyPackage
cd MyPackage
Invoke-Program swift package init --type library
Invoke-Program swift build
enable_windows_docker: false
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: |
mkdir MyPackage
cd MyPackage
xcrun swift package init --type library
xcrun swift build
tests_ios:
name: Test iOS
uses: ./.github/workflows/swift_package_test.yml
with:
enable_linux_checks: false
enable_windows_checks: false
# iOS
enable_ios_checks: true
ios_pre_build_command: |
mkdir MyPackage
cd MyPackage
xcrun swift package init --type library
soundness:
name: Soundness
uses: ./.github/workflows/soundness.yml
with:
api_breakage_check_enabled: false
license_header_check_project_name: "Swift.org"