Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches:
- "**"

concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v3
- run: bazel build --config=ci ...
check-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v3
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v3
- run: ./CheckDist.sh
1 change: 1 addition & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ bzlws_copy(
],
out = "dist/include/{FILEPATH}",
force = True,
strip_filepath_prefix = "external/ecsact_runtime",
)

bzlws_copy(
Expand Down
18 changes: 18 additions & 0 deletions CheckDist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/usr/bin/env bash

set -e

bazel build --config=ci //:copy_dist_bin //:copy_dist_include //:copy_dist_codegen_plugins

bazel run --config=ci //:copy_dist_bin
bazel run --config=ci //:copy_dist_include
bazel run --config=ci //:copy_dist_codegen_plugins

find dist -type f

echo

[ ! -d "dist/include/ecsact" ] && echo "Missing ecsact include directory" && exit 1
[ ! -f "dist/bin/ecsact" ] && echo "Missing ecsact CLI" && exit 1

exit 0
6 changes: 3 additions & 3 deletions WORKSPACE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ http_archive(

http_archive(
name = "bzlws",
sha256 = "9f52b3f339fb42e5a663b379eda56723fafb27c0fb3113152ee3a9229b059080",
strip_prefix = "bzlws-4042efa29a0359cf13f1b64e0bcd560c2d1dc4c2",
url = "https://github.com/zaucy/bzlws/archive/4042efa29a0359cf13f1b64e0bcd560c2d1dc4c2.zip",
sha256 = "93e6cec29581070fe4455a2ad6c81d4b7ee8ca1b76c2c340883100ef2686c8c7",
strip_prefix = "bzlws-b12ad162a63fc368785a217cd62c7afb0c9107f8",
url = "https://github.com/zaucy/bzlws/archive/b12ad162a63fc368785a217cd62c7afb0c9107f8.zip",
)

load("@bzlws//:repo.bzl", "bzlws_deps")
Expand Down