Skip to content

Commit 0077359

Browse files
authored
Add platform build tests to CI (firebase#3)
1 parent a97185f commit 0077359

File tree

5 files changed

+66
-3
lines changed

5 files changed

+66
-3
lines changed

.github/PULL_REQUEST_TEMPLATE

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
Please do not send pull requests to the BoringSSL repository.
1+
This fork is only for Swift Package Manager support for Firestore.
22

3-
We do, however, take contributions gladly.
3+
Pull requests here should only be to support Firestore.
44

5-
See https://boringssl.googlesource.com/boringssl/+/master/CONTRIBUTING.md
5+
Otherwise for the Boring SSL library itself,
6+
see https://boringssl.googlesource.com/boringssl/+/master/CONTRIBUTING.md
67

78
Thanks!

.github/workflows/spm.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: spm
2+
3+
on:
4+
pull_request:
5+
schedule:
6+
# Run every day at 11pm (PST) - cron uses UTC times
7+
- cron: '0 7 * * *'
8+
9+
jobs:
10+
swiftpm-build-tests:
11+
runs-on: macOS-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Initialize xcodebuild
15+
run: xcodebuild -list
16+
- name: iOS Simulator Build Tests
17+
run: xcodebuild -scheme BoringSSL-GRPC build -sdk 'iphonesimulator' -destination 'platform=iOS Simulator,name=iPhone 11'
18+
- name: macos Build Tests
19+
run: xcodebuild -scheme BoringSSL-GRPC build -sdk 'macosx' -destination 'platform=OS X,arch=x86_64',
20+
- name: tvOS Build Tests
21+
run: xcodebuild -scheme BoringSSL-GRPC build -sdk "appletvsimulator" -destination 'platform=tvOS Simulator,name=Apple TV'
22+
- name: iOS Device Build Tests
23+
run: xcodebuild -scheme BoringSSL-GRPC build -sdk 'iphoneos'

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SwiftPM build directory
2+
.swiftpm/

Package.swift

+7
Original file line numberDiff line numberDiff line change
@@ -3402,6 +3402,13 @@ let package = Package(
34023402

34033403
]
34043404
),
3405+
.testTarget(
3406+
name: "build-test",
3407+
dependencies: [
3408+
"openssl_grpc",
3409+
],
3410+
path: "SwiftPMTests/build-test"
3411+
),
34053412
],
34063413

34073414
cxxLanguageStandard: CXXLanguageStandard.gnucxx14

SwiftPMTests/build-test/test.cc

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Copyright 2021 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
// BoringSSL imports from gRPC
16+
// Created using `git grep -h \<openssl | grep include | sort | uniq`
17+
18+
#include <openssl/bio.h>
19+
#include <openssl/bn.h>
20+
#include <openssl/buffer.h>
21+
#include <openssl/crypto.h>
22+
#include <openssl/engine.h>
23+
#include <openssl/err.h>
24+
#include <openssl/evp.h>
25+
#include <openssl/hmac.h>
26+
#include <openssl/pem.h>
27+
#include <openssl/rsa.h>
28+
#include <openssl/ssl.h>
29+
#include <openssl/x509.h>
30+
#include <openssl/x509v3.h>

0 commit comments

Comments
 (0)