Copybara import of the project:

--
e0179bad83 by Dan Zheng <danielzheng@google.com>:

Rename BUILD to BUILD.bazel.

This fixes an error on macOS due to `build` and `BUILD` having conflicting names.

--
74b27074e1 by Dan Zheng <danielzheng@google.com>:

Enable macos-latest in GitHub Actions CI.

--
c08de58e6a by Dan Zheng <danielzheng@google.com>:

Fix concurrency key in GitHub Actions.

Use matrix configuration in concurrency key.

COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gemma.cpp/pull/36 from dan-zheng:rename-build-bzl b4b978f02b
PiperOrigin-RevId: 610156681
This commit is contained in:
Dan Zheng 2024-02-25 04:33:39 -08:00 committed by Copybara-Service
parent 696597383c
commit 1243be71c4
2 changed files with 4 additions and 55 deletions

View File

@ -1,4 +1,4 @@
name: Build
name: build
# Trigger on push or via manual dispatch.
on: [push, workflow_dispatch]
@ -13,10 +13,10 @@ jobs:
fail-fast: false
matrix:
type: ['Release']
os: ['ubuntu-latest']
os: ['ubuntu-latest', 'macos-latest']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}
cancel-in-progress: true
steps:

View File

@ -114,54 +114,3 @@ cc_binary(
"//:thread_pool",
],
)
# copybara:strip_begin
cc_binary(
name = "run_csv",
srcs = [
"run_csv.cc",
],
deps = [
":app",
":args",
":gemma_lib",
"//compression:compress",
# copybara:import_next_line:hwy
"//:hwy",
# copybara:import_next_line:hwy
"//:nanobenchmark",
# copybara:import_next_line:hwy
"//:profiler",
# copybara:import_next_line:hwy
"//:thread_pool",
"//third_party/riegeli/bytes:file_reader",
"//third_party/riegeli/bytes:file_writer",
"//third_party/riegeli/csv:csv_reader",
"//third_party/riegeli/csv:csv_writer",
],
)
gensignature(
name = "gemma_sign",
srcs = [":gemma"],
)
cc_test(
name = "benchmarks",
size = "large",
srcs = [
"benchmarks.cc",
],
tags = ["notap"],
deps = [
":app",
":gemma_lib",
"//third_party/benchmark",
# copybara:import_next_line:hwy
"//:hwy",
# copybara:import_next_line:hwy
"//:thread_pool",
],
)
# copybara:strip_end