diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..b385fb0 --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -0,0 +1,17 @@ +on: [push] +jobs: + setup: + runs-on: self-hosted + steps: + - name: checkout + uses: actions/checkout@v4 + - name: install bazel + run: wget -O bazel https://github.com/bazelbuild/bazelisk/releases/download/v1.25.0/bazelisk-linux-amd64 && chmod +x bazel && mv bazel /home/ubuntu/bin/ + - name: bazel cache + id: bazel-cache + uses: actions/cache@v3 + with: + path: ~/.ce/.bazel_cache + key: bazel-cache-${{ runner.os }}-${{ hashFiles('WORKSPACE') }} + - name: test + run: bash scripts/bb_test_all