mirror of https://github.com/google/gemma.cpp.git
Copybara import of the project:
--e0179bad83by Dan Zheng <danielzheng@google.com>: Rename BUILD to BUILD.bazel. This fixes an error on macOS due to `build` and `BUILD` having conflicting names. --74b27074e1by Dan Zheng <danielzheng@google.com>: Enable macos-latest in GitHub Actions CI. --c08de58e6aby 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-bzlb4b978f02bPiperOrigin-RevId: 610156681
This commit is contained in:
parent
696597383c
commit
1243be71c4
|
|
@ -1,11 +1,11 @@
|
||||||
name: Build
|
name: build
|
||||||
|
|
||||||
# Trigger on push or via manual dispatch.
|
# Trigger on push or via manual dispatch.
|
||||||
on: [push, workflow_dispatch]
|
on: [push, workflow_dispatch]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{ matrix.os }}
|
||||||
name: ${{ matrix.os }} ${{ matrix.type }}
|
name: ${{ matrix.os }} ${{ matrix.type }}
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
|
||||||
|
|
@ -13,10 +13,10 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
type: ['Release']
|
type: ['Release']
|
||||||
os: ['ubuntu-latest']
|
os: ['ubuntu-latest', 'macos-latest']
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ matrix.os }}-${{ matrix.type }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
|
|
||||||
51
BUILD.bazel
51
BUILD.bazel
|
|
@ -114,54 +114,3 @@ cc_binary(
|
||||||
"//:thread_pool",
|
"//: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
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue