Skip to content

Commit 1d185c0

Browse files
authored
chore: sync with ecsact_common (#109)
1 parent fe667ca commit 1d185c0

File tree

3 files changed

+47
-10
lines changed

3 files changed

+47
-10
lines changed

.github/workflows/bzlmod-archive.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# This file is maintained by ecsact-dev/ecsact_common
2+
# If changes are required please make them there
3+
4+
name: bzlmod archive
5+
6+
on:
7+
release:
8+
types: [published]
9+
10+
jobs:
11+
bzlmod-archive:
12+
uses: ecsact-dev/bazel_registry/.github/workflows/bzlmod-archive.yml@main
13+
secrets: inherit
14+
permissions:
15+
contents: write

.github/workflows/main.yml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
name: CI
1+
# This file is maintained by ecsact-dev/ecsact_common
2+
# If changes are required please make them there
3+
4+
name: main
25

36
on:
47
push:
58
branches:
69
- "**"
710

8-
concurrency:
9-
group: ${{ github.ref }}
10-
cancel-in-progress: true
11-
1211
jobs:
1312
formatting-check:
1413
name: Formatting Check
1514
runs-on: ubuntu-latest
1615
steps:
17-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1817
- uses: jidicula/[email protected]
1918
with: { clang-format-version: "16" }
2019

@@ -27,8 +26,11 @@ jobs:
2726
/Users/runneradmin/AppData/Local/bazelisk
2827
/Users/runneradmin/.cache/bazel-disk-cache
2928
key: ${{runner.os}}-bazel-cache
30-
- uses: actions/checkout@v3
31-
- run: bazel test --config=ci //...
29+
- uses: actions/checkout@v4
30+
- run: bazelisk build --config=ci //...
31+
- if: ${{ hashfiles('test/MODULE.bazel') != '' }}
32+
run: bazelisk test --config=ci ...
33+
working-directory: test
3234

3335
test-linux:
3436
runs-on: ubuntu-latest
@@ -39,5 +41,8 @@ jobs:
3941
~/.cache/bazelisk
4042
~/.cache/bazel-disk-cache
4143
key: ${{runner.os}}-bazel-cache
42-
- uses: actions/checkout@v3
43-
- run: bazel test --config=ci //...
44+
- uses: actions/checkout@v4
45+
- run: bazelisk build --config=ci //...
46+
- if: ${{ hashfiles('test/MODULE.bazel') != '' }}
47+
run: bazelisk test --config=ci ...
48+
working-directory: test

bazel/common.bazelrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
startup --windows_enable_symlinks
2+
common --enable_bzlmod
3+
build --enable_platform_specific_config
4+
build --incompatible_use_platforms_repo_for_constraints
5+
build --incompatible_enable_cc_toolchain_resolution
6+
build --incompatible_strict_action_env
7+
build --enable_runfiles
8+
build --noincompatible_remove_rule_name_parameter
9+
query --noincompatible_remove_rule_name_parameter
10+
11+
# Temporary until https://github.com/grailbio/bazel-toolchain/pull/198 is merged
12+
build:linux --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
13+
14+
common:ci --announce_rc
15+
common:ci --verbose_failures
16+
common:ci --keep_going
17+
common:ci --disk_cache=~/.cache/bazel-disk-cache

0 commit comments

Comments
 (0)