Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build and add CI #218

Merged
merged 3 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/spm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: spm

on:
pull_request:
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
- cron: '0 7 * * *'

jobs:
swiftpm-build-tests:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
- name: Initialize xcodebuild
run: xcodebuild -list
- name: iOS Simulator Build Tests
run: xcodebuild -scheme gRPC-Package build -sdk 'iphonesimulator' -destination 'platform=iOS Simulator,name=iPhone 14'
- name: macos Build Tests
run: xcodebuild -scheme gRPC-Package -sdk 'macosx' -destination 'platform=OS X,arch=x86_64',
- name: tvOS Build Tests
run: xcodebuild -scheme gRPC-Package build -sdk "appletvsimulator" -destination 'platform=tvOS Simulator,name=Apple TV'
- name: iOS Device Build Tests
run: xcodebuild -scheme gRPC-Package build -sdk 'iphoneos' -destination 'generic/platform=iOS'
6 changes: 5 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ let package = Package(
"src/core/ext/transport/cronet/",
"src/core/ext/xds/google_mesh_ca_certificate_provider_factory.h",
"src/core/ext/xds/google_mesh_ca_certificate_provider_factory.cc",
"src/core/lib/event_engine/time_util.cc",
"src/objective-c/examples/",
"src/objective-c/manual_tests",
"src/objective-c/tests/",
"third_party/re2/re2/testing/",
"third_party/re2/re2/fuzzing/",
Expand All @@ -50,7 +52,6 @@ let package = Package(
"third_party/upb/upb/test_generated_code.cc",
"third_party/upb/upb/test_cpp.cc",
"third_party/upb/upb/conformance_upb.c",
"src/core/lib/event_engine/utils.cc",
],
sources: [
"src/core/ext/filters/",
Expand All @@ -60,9 +61,11 @@ let package = Package(
"src/core/ext/xds/",
"src/core/lib/",
"src/core/plugin_registry/grpc_plugin_registry.cc",
"src/core/plugin_registry/grpc_plugin_registry_extra.cc",
"src/core/tsi/",
"third_party/re2/re2/",
"third_party/re2/util/",
"third_party/upb/third_party/",
"third_party/upb/upb/",
"third_party/xxhash/xxhash.h",
],
Expand Down Expand Up @@ -105,6 +108,7 @@ let package = Package(
"src/cpp/util/core_stats.h",
"src/cpp/util/error_details.cc",
"src/objective-c/examples/",
"src/objective-c/manual_tests",
"src/objective-c/tests/",
],
sources: [
Expand Down