Repository navigation
66 lines (58 loc) · 1.66 KB
/
Copy pathbazel-rust.yml
File metadata and controls
66 lines (58 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: bazel · rust
# Build + test every Rust crate via Bazel. Scoped to changes that
# actually affect Rust output (Cargo.toml, .rs, BUILD.bazel files
# under the Rust tiers, plus shared infra).
on:
workflow_dispatch: {}
push:
branches: [main]
paths:
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- "MODULE.bazel"
- "MODULE.bazel.lock"
- ".bazelrc"
- ".bazelversion"
- ".github/workflows/bazel-rust.yml"
pull_request:
paths:
- "crates/**"
- "Cargo.toml"
- "Cargo.lock"
- "MODULE.bazel"
- "MODULE.bazel.lock"
- ".bazelrc"
- ".bazelversion"
- ".github/workflows/bazel-rust.yml"
concurrency:
group: bazel-rust-${{ github.ref }}
cancel-in-progress: true
env:
BAZELISK_SKIP_WRAPPER: true
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-15]
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
cache-version: 2-${{ runner.os }}-${{ runner.arch }}
- name: bazel build (Rust tiers)
run: |
bazel build --config=ci \
//crates/batchalign/...
- name: bazel test (Rust unit tests)
run: |
bazel test --config=ci \
//crates/batchalign/... \
//crates/batchalign/batchalign-engine:batchalign_engine_unit_test \
//crates/batchalign/batchalign-engine:cache_smoke \
//crates/batchalign/batchalign-engine:pipeline_smoke