Add GitHub Action for testing Linux build.

PiperOrigin-RevId: 466797648
This commit is contained in:
Nick Bourdakos
2022-08-10 15:18:44 -07:00
committed by Copybara-Service
parent 07119e80de
commit c48e27d754
13 changed files with 68 additions and 41 deletions
@@ -1,27 +0,0 @@
name: Validate Swift Package
on: [push, pull_request]
env:
FORCE_COLOR: true
jobs:
build:
name: Build
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: swift build
test:
name: Test
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Test
run: swift test
+57
View File
@@ -0,0 +1,57 @@
name: Validate
on: [push, pull_request]
env:
FORCE_COLOR: true
jobs:
build:
name: Build
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: swift build
test:
name: Test
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Test
run: swift test
build-swift:
name: Build Swift
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build
run: swift build
test-swift:
name: Test Swift
runs-on: macOS-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Test
run: swift test
build-linux:
name: Build Linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Build
run: CC=clang CXX=clang++ bazel build --check_visibility=false //connections:core --spawn_strategy=standalone
-1
View File
@@ -74,7 +74,6 @@ cc_library(
"//internal/platform/implementation/ios:__subpackages__",
],
deps = [
"//connections/clients/windows:types",
"//internal/platform:base",
"//internal/platform:types",
"//internal/platform:util",
+2 -1
View File
@@ -19,7 +19,7 @@ load(
"expand_version_template.bzl",
"expand_version_template",
)
load("//tools/build_defs/testing:bzl_library.bzl", "bzl_library")
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
package(default_visibility = ["//location/nearby:__subpackages__"])
@@ -133,6 +133,7 @@ lexan.cc_windows_dll(
"core_adapter.h",
"dart/core_adapter_dart.h",
"discovery_options_w.h",
"dll_config.h",
"listeners_w.h",
"medium_selector_w.h",
"options_base_w.h",
+2 -2
View File
@@ -66,7 +66,7 @@ cc_library(
"payload_manager.cc",
"pcp_manager.cc",
"service_controller_router.cc",
"webrtc_bwu_handler.cc",
"webrtc_bwu_handler_stub.cc",
"webrtc_endpoint_channel.cc",
"wifi_hotspot_bwu_handler.cc",
"wifi_hotspot_endpoint_channel.cc",
@@ -107,7 +107,7 @@ cc_library(
"service_controller.h",
"service_controller_router.h",
"service_id_constants.h",
"webrtc_bwu_handler.h",
"webrtc_bwu_handler_stub.h",
"webrtc_endpoint_channel.h",
"wifi_hotspot_bwu_handler.h",
"wifi_hotspot_endpoint_channel.h",
+2 -2
View File
@@ -67,12 +67,12 @@ cc_library(
name = "utils",
srcs = [
"utils.cc",
"webrtc_peer_id.cc",
"webrtc_peer_id_stub.cc",
],
hdrs = [
"lost_entity_tracker.h",
"utils.h",
"webrtc_peer_id.h",
"webrtc_peer_id_stub.h",
"webrtc_socket_stub.h",
],
defines = ["NO_WEBRTC"],
@@ -21,7 +21,7 @@
#include <string>
#include "connections/implementation/proto/offline_wire_formats.pb.h"
#include "connections/implementation/mediums/webrtc_peer_id.h"
#include "connections/implementation/mediums/webrtc_peer_id_stub.h"
#include "connections/implementation/mediums/webrtc_socket_stub.h"
#include "internal/platform/cancellation_flag.h"
#include "internal/platform/listeners.h"
+3
View File
@@ -35,6 +35,9 @@ java_lite_proto_library(
cc_proto_library(
name = "offline_wire_formats_cc_proto",
visibility = [
"//third_party/nearby:__subpackages__",
],
deps = [
":offline_wire_formats_proto",
],
-1
View File
@@ -17,7 +17,6 @@
#include <string>
#include "connections/clients/windows/dll_config.h"
#include "connections/listeners.h"
#include "internal/platform/byte_array.h"
-1
View File
@@ -320,7 +320,6 @@ cc_library(
":base",
":logging",
":util",
"//connections/clients/windows:types",
"//internal/platform/implementation:platform",
"//internal/platform/implementation:types",
"@com_google_absl//absl/base:core_headers",
-1
View File
@@ -19,7 +19,6 @@
#include <memory>
#include <string>
#include "connections/clients/windows/dll_config.h"
#include "internal/platform/byte_array.h"
#include "internal/platform/exception.h"
#include "internal/platform/implementation/input_file.h"
-1
View File
@@ -43,7 +43,6 @@ cc_library(
"//presence:__subpackages__",
],
deps = [
"//connections/clients/windows:types",
"//internal/platform:base",
"@com_google_absl//absl/base:core_headers",
"@com_google_absl//absl/strings",
+1 -3
View File
@@ -2,10 +2,8 @@ syntax = "proto2";
package nearby.presence.proto;
import "third_party/nearby/presence/proto/device_metadata.proto";
import "presence/proto/device_metadata.proto";
option cc_api_version = 2;
option java_api_version = 2;
option java_package = "com.google.nearby.presence";
enum IdentityType {