Skip to content

Commit

Permalink
chore: sync with ecsact_common (#40)
Browse files Browse the repository at this point in the history
Co-authored-by: seaubot <[email protected]>
  • Loading branch information
seaubot and seaubot authored Apr 20, 2024
1 parent f3f6fc2 commit 298746d
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.3.2
7.1.1
28 changes: 15 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,44 @@
name: main

on:
push:
branches:
- "**"
pull_request:
merge_group:

jobs:
typos-check:
name: Typos Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/[email protected]

formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: jidicula/clang-format-action@v4.9.0
with: { clang-format-version: "16" }
- uses: jidicula/clang-format-action@v4.11.0
with: { clang-format-version: "18" }

test-windows:
runs-on: windows-latest
steps:
- uses: wasmerio/setup-wasmer@v2
- uses: ecsact-dev/[email protected]
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
/Users/runneradmin/AppData/Local/bazelisk
/Users/runneradmin/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v4
- run: bazelisk --output_user_root=C:/tmp build --config=ci //...
- run: bazelisk build --config=ci //...
- if: ${{ hashfiles('test/MODULE.bazel') != '' }}
run: bazelisk --output_user_root=C:/tmp test --config=ci ...
run: bazelisk test --config=ci ...
working-directory: test

test-linux:
runs-on: ubuntu-latest
steps:
- uses: wasmerio/setup-wasmer@v2
- uses: ecsact-dev/[email protected]
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: |
~/.cache/bazelisk
Expand Down
4 changes: 0 additions & 4 deletions bazel/common.bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,12 @@ common --registry=https://raw.githubusercontent.com/ecsact-dev/bazel_registry/ma
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
common --registry=https://bcr.bazel.build
build --enable_platform_specific_config
build --incompatible_use_platforms_repo_for_constraints
build --incompatible_enable_cc_toolchain_resolution
build --incompatible_strict_action_env
build --enable_runfiles
build --noincompatible_remove_rule_name_parameter
query --noincompatible_remove_rule_name_parameter

# Temporary until https://github.com/grailbio/bazel-toolchain/pull/198 is merged
build:linux --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux

common:ci --announce_rc
common:ci --verbose_failures
common:ci --keep_going
Expand Down
2 changes: 1 addition & 1 deletion bazel/copts.bzl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
load("@bazel_skylib//lib:selects.bzl", "selects")

# Ecsact repositories currently only support clang and cl
# Ecsact repositories currently only support clang, cl, and emscripten
copts = selects.with_or({
(Label("//bazel:compiler_emscripten")): [
"-std=c++20",
Expand Down
5 changes: 5 additions & 0 deletions typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[files]
extend-exclude = ["CHANGELOG.md"]

[default]
extend-ignore-re = ["(?Rm)^.*(#|//)\\s*typos:disable-line$"]

0 comments on commit 298746d

Please sign in to comment.