-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
119 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
6.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# This file is maintained by ecsact-dev/ecsact_common | ||
# If changes are required please make them there | ||
|
||
name: bzlmod archive | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
bzlmod-archive: | ||
uses: ecsact-dev/bazel_registry/.github/workflows/bzlmod-archive.yml@main | ||
secrets: inherit | ||
permissions: | ||
contents: write |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# This file is maintained by ecsact-dev/ecsact_common | ||
# If changes are required please make them there | ||
|
||
name: main | ||
|
||
on: | ||
push: | ||
branches: | ||
- "**" | ||
|
||
jobs: | ||
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" } | ||
|
||
test-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/cache@v3 | ||
with: | ||
path: | | ||
/Users/runneradmin/AppData/Local/bazelisk | ||
/Users/runneradmin/.cache/bazel-disk-cache | ||
key: ${{runner.os}}-bazel-cache | ||
- uses: actions/checkout@v4 | ||
- run: bazelisk build --config=ci //... | ||
- if: ${{ hashfiles('test/MODULE.bazel') != '' }} | ||
run: bazelisk test --config=ci ... | ||
working-directory: test | ||
|
||
test-linux: | ||
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@v4 | ||
- run: bazelisk build --config=ci //... | ||
- if: ${{ hashfiles('test/MODULE.bazel') != '' }} | ||
run: bazelisk test --config=ci ... | ||
working-directory: test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
config_setting( | ||
name = "compiler_emscripten", | ||
flag_values = {"@bazel_tools//tools/cpp:compiler": "emscripten"}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
startup --windows_enable_symlinks | ||
common --enable_bzlmod | ||
common --registry=https://raw.githubusercontent.com/ecsact-dev/bazel_registry/main | ||
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 | ||
common:ci --disk_cache=~/.cache/bazel-disk-cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,17 @@ | ||
""" | ||
""" | ||
load("@bazel_skylib//lib:selects.bzl", "selects") | ||
|
||
copts = select({ | ||
"@bazel_tools//tools/cpp:msvc": ["/std:c++20", "/Zc:preprocessor", "/permissive-", "/diagnostics:caret"], | ||
"//conditions:default": ["-std=c++20"], | ||
# Ecsact repositories currently only support clang, cl, and emscripten | ||
copts = selects.with_or({ | ||
(Label("//bazel:compiler_emscripten")): [ | ||
"-std=c++20", | ||
], | ||
("@rules_cc//cc/compiler:clang"): [ | ||
"-std=c++2b", | ||
"-fexperimental-library", | ||
], | ||
("@rules_cc//cc/compiler:msvc-cl", "@rules_cc//cc/compiler:clang-cl"): [ | ||
"/std:c++latest", | ||
"/permissive-", | ||
"/Zc:preprocessor", | ||
], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
pre_bump_hooks = [ | ||
# Ecsact pre 1.0.0 the 0.X.0 is our 'major' version | ||
"buildozer 'set version {{version}}' 'set compatibility_level {{version.minor}}' //MODULE.bazel:%module", | ||
] | ||
|
||
post_bump_hooks = [ | ||
"git push", | ||
"git push origin {{version}}", | ||
"gh release create {{version}} --generate-notes --latest -t {{version}} --verify-tag", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>ecsact-dev/renovate-config" | ||
] | ||
} | ||
{ | ||
"$schema": "https://docs.renovatebot.com/renovate-schema.json", | ||
"extends": [ | ||
"github>ecsact-dev/renovate-config" | ||
] | ||
} |