Rename BUILD to BUILD.bazel. (#36)

* Rename BUILD to BUILD.bazel.

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

* Enable macos-latest in GitHub Actions CI.

* Fix concurrency key in GitHub Actions.

Use matrix configuration in concurrency key.
This commit is contained in:
Dan Zheng 2024-02-24 14:52:59 -08:00 committed by GitHub
parent 5fe31ad0bc
commit 3af439621e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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. # Trigger on push or via manual dispatch.
on: [push, workflow_dispatch] on: [push, workflow_dispatch]
@ -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:

View File

@ -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