File tree Expand file tree Collapse file tree 4 files changed +56
-3
lines changed Expand file tree Collapse file tree 4 files changed +56
-3
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - " **"
7+
8+ concurrency :
9+ group : ${{ github.ref }}
10+ cancel-in-progress : true
11+
12+ jobs :
13+ build :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/cache@v3
17+ with :
18+ path : |
19+ ~/.cache/bazelisk
20+ ~/.cache/bazel-disk-cache
21+ key : ${{runner.os}}-bazel-cache
22+ - uses : actions/checkout@v3
23+ - run : bazel build --config=ci ...
24+ check-dist :
25+ runs-on : ubuntu-latest
26+ steps :
27+ - uses : actions/cache@v3
28+ with :
29+ path : |
30+ ~/.cache/bazelisk
31+ ~/.cache/bazel-disk-cache
32+ key : ${{runner.os}}-bazel-cache
33+ - uses : actions/checkout@v3
34+ - run : ./CheckDist.sh
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ bzlws_copy(
1616 ],
1717 out = "dist/include/{FILEPATH}" ,
1818 force = True ,
19+ strip_filepath_prefix = "external/ecsact_runtime" ,
1920)
2021
2122bzlws_copy (
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env bash
2+
3+ set -e
4+
5+ bazel build --config=ci //:copy_dist_bin //:copy_dist_include //:copy_dist_codegen_plugins
6+
7+ bazel run --config=ci //:copy_dist_bin
8+ bazel run --config=ci //:copy_dist_include
9+ bazel run --config=ci //:copy_dist_codegen_plugins
10+
11+ find dist -type f
12+
13+ echo
14+
15+ [ ! -d " dist/include/ecsact" ] && echo " Missing ecsact include directory" && exit 1
16+ [ ! -f " dist/bin/ecsact" ] && echo " Missing ecsact CLI" && exit 1
17+
18+ exit 0
Original file line number Diff line number Diff line change @@ -68,9 +68,9 @@ http_archive(
6868
6969http_archive (
7070 name = "bzlws" ,
71- sha256 = "9f52b3f339fb42e5a663b379eda56723fafb27c0fb3113152ee3a9229b059080 " ,
72- strip_prefix = "bzlws-4042efa29a0359cf13f1b64e0bcd560c2d1dc4c2 " ,
73- url = "https://github.com/zaucy/bzlws/archive/4042efa29a0359cf13f1b64e0bcd560c2d1dc4c2 .zip" ,
71+ sha256 = "93e6cec29581070fe4455a2ad6c81d4b7ee8ca1b76c2c340883100ef2686c8c7 " ,
72+ strip_prefix = "bzlws-b12ad162a63fc368785a217cd62c7afb0c9107f8 " ,
73+ url = "https://github.com/zaucy/bzlws/archive/b12ad162a63fc368785a217cd62c7afb0c9107f8 .zip" ,
7474)
7575
7676load ("@bzlws//:repo.bzl" , "bzlws_deps" )
You can’t perform that action at this time.
0 commit comments