-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUILD.bazel
37 lines (31 loc) · 848 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
load("@io_bazel_rules_go//go:def.bzl", "go_path")
load("@bazel_gazelle//:def.bzl", "gazelle")
# gazelle:prefix github.com/kogai/k9bookshelf
gazelle(name = "gazelle")
go_path(
name = "gopath",
mode = "link",
deps = [
"//content/cmd/content",
],
)
config_setting(
name = "darwin",
values = {"cpu": "darwin"},
)
# NOTE: github actions are running on amd-k8 machine.
# https://en.wikipedia.org/wiki/AMD_K8
# bazel config "$(bazel cquery //:theme | awk -F '[()]' '{print $(NF-1)}')" | grep cpu
config_setting(
name = "ci",
values = {"cpu": "k8"},
)
alias(
name = "theme",
actual = select({
":darwin": "@theme_darwin//file:downloaded",
":ci": "@theme_linux//file:downloaded",
"//conditions:default": "@theme_darwin//file:downloaded",
}),
)
exports_files([".gqlgenc.yml"])