Skip to content

Commit bd37ed7

Browse files
committed
Added missing runfiles for esact_rtb
1 parent 7050ab7 commit bd37ed7

File tree

4 files changed

+46
-2
lines changed

4 files changed

+46
-2
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@ jobs:
2323
key: ${{runner.os}}-bazel-cache
2424
- uses: actions/checkout@v3
2525
- run: bazel run --config=ci //:copy_dist_include
26+
- run: bazel run --config=ci //:copy_runfiles
27+
- run: rm -rf dist/bin/ecsact_rtb.runfiles/boost_mp11_files/.github
28+
- run: rm -rf dist/bin/ecsact_rtb.runfiles/boost_mp11_files/doc
29+
- run: rm -rf dist/bin/ecsact_rtb.runfiles/boost_mp11_files/meta
30+
- run: rm -rf dist/bin/ecsact_rtb.runfiles/boost_mp11_files/tools
31+
- run: rm -rf dist/bin/ecsact_rtb.runfiles/boost_mp11_files/test
2632
- uses: actions/upload-artifact@v3
2733
with:
2834
name: common-dist
@@ -73,7 +79,7 @@ jobs:
7379
with:
7480
name: linux-x64-binaries
7581
# https://github.com/actions/upload-artifact#permission-loss
76-
- run: chmod +x bin/ecsact
82+
- run: chmod +x bin/ecsact bin/ecsact_rtb
7783
- run: tar -czf ecsact_sdk_${{github.ref_name}}_linux_x64.tar.gz bin include share
7884
- uses: actions/upload-artifact@v3
7985
with:
@@ -93,6 +99,7 @@ jobs:
9399
with:
94100
name: windows-x64-binaries
95101
- run: >
102+
mv bin/ecsact_rtb.runfiles bin/ecsact_rtb.exe.runfiles &&
96103
zip -r ecsact_sdk_${{github.ref_name}}_windows_x64.zip bin include share
97104
- uses: actions/upload-artifact@v3
98105
with:

BUILD.bazel

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
load("@bzlws//:index.bzl", "bzlws_copy")
1+
load(":pkg.bzl", "pkg_executable")
2+
load("@rules_pkg//pkg:tar.bzl", "pkg_tar")
3+
load("@bzlws//:index.bzl", "bzlws_copy", "bzlws_extract")
4+
5+
pkg_executable(
6+
name = "ecsact_rtb_runfiles",
7+
bin = "@ecsact_rtb//cli:ecsact_rtb",
8+
path = "ecsact_rtb",
9+
)
10+
11+
pkg_tar(
12+
name = "runfiles_tar",
13+
srcs = [":ecsact_rtb_runfiles"],
14+
)
15+
16+
bzlws_extract(
17+
name = "copy_runfiles",
18+
testonly = True,
19+
srcs = [":runfiles_tar"],
20+
out = "dist/bin",
21+
force = True,
22+
)
223

324
bzlws_copy(
425
name = "copy_dist_bin",

CheckDist.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ set -e
55
bazel build --config=ci //:copy_dist_bin //:copy_dist_include //:copy_dist_codegen_plugins
66

77
bazel run --config=ci //:copy_dist_bin
8+
bazel run --config=ci //:copy_runfiles
89
bazel run --config=ci //:copy_dist_include
910
bazel run --config=ci //:copy_dist_codegen_plugins
1011

@@ -14,5 +15,7 @@ echo
1415

1516
[ ! -d "dist/include/ecsact" ] && echo "Missing ecsact include directory" && exit 1
1617
[ ! -f "dist/bin/ecsact" ] && echo "Missing ecsact CLI" && exit 1
18+
[ ! -f "dist/bin/ecsact_rtb" ] && echo "Missing ecsact runtime builder CLI" && exit 1
19+
[ ! -d "dist/bin/ecsact_rtb.runfiles" ] && echo "Missing ecsact rtb runfiles" && exit 1
1720

1821
exit 0

WORKSPACE.bazel

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,19 @@ load("@boost//:index.bzl", "boost_http_archives")
3939

4040
boost_http_archives()
4141

42+
http_archive(
43+
name = "rules_pkg",
44+
sha256 = "8a298e832762eda1830597d64fe7db58178aa84cd5926d76d5b744d6558941c2",
45+
urls = [
46+
"https://mirror.bazel.build/github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
47+
"https://github.com/bazelbuild/rules_pkg/releases/download/0.7.0/rules_pkg-0.7.0.tar.gz",
48+
],
49+
)
50+
51+
load("@rules_pkg//:deps.bzl", "rules_pkg_dependencies")
52+
53+
rules_pkg_dependencies()
54+
4255
http_archive(
4356
name = "ecsact_rtb",
4457
sha256 = "46e38a4f1714bfce34eedd0a013486813dab2aa097e4f5afabfd3e1e9c140880",

0 commit comments

Comments
 (0)