File tree Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Expand file tree Collapse file tree 4 files changed +46
-2
lines changed Original file line number Diff line number Diff line change 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
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 :
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 :
Original file line number Diff line number Diff line change 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
324bzlws_copy (
425 name = "copy_dist_bin" ,
Original file line number Diff line number Diff line change 55bazel build --config=ci //:copy_dist_bin //:copy_dist_include //:copy_dist_codegen_plugins
66
77bazel run --config=ci //:copy_dist_bin
8+ bazel run --config=ci //:copy_runfiles
89bazel run --config=ci //:copy_dist_include
910bazel run --config=ci //:copy_dist_codegen_plugins
1011
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
1821exit 0
Original file line number Diff line number Diff line change @@ -39,6 +39,19 @@ load("@boost//:index.bzl", "boost_http_archives")
3939
4040boost_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+
4255http_archive (
4356 name = "ecsact_rtb" ,
4457 sha256 = "46e38a4f1714bfce34eedd0a013486813dab2aa097e4f5afabfd3e1e9c140880" ,
You can’t perform that action at this time.
0 commit comments