Skip to content

Commit e458c22

Browse files
seaubotzaucy
andauthored
chore: sync with ecsact_common (#81)
Automatically created by https://github.com/ecsact-dev/ecsact_common --------- Co-authored-by: seaubot <[email protected]> Co-authored-by: Ezekiel Warren <[email protected]>
1 parent 563f97d commit e458c22

File tree

15 files changed

+376
-371
lines changed

15 files changed

+376
-371
lines changed

.editorconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: crate-ci/typos@v1.20.4
16+
- uses: crate-ci/typos@v1.19.0
1717

1818
formatting-check:
1919
name: Formatting Check
2020
runs-on: ubuntu-latest
2121
steps:
2222
- uses: actions/checkout@v4
23+
- uses: greut/eclint-action@v0
2324
- uses: jidicula/[email protected]
2425
with: { clang-format-version: "18" }
2526

2627
test-windows:
28+
if: github.event_name == 'merge_group'
2729
runs-on: windows-latest
2830
steps:
2931
- uses: actions/cache@v4
@@ -39,6 +41,7 @@ jobs:
3941
working-directory: test
4042

4143
test-linux:
44+
if: github.event_name == 'merge_group'
4245
runs-on: ubuntu-latest
4346
steps:
4447
- uses: actions/cache@v4

.github/workflows/release.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
name: release
2-
3-
on:
4-
release:
5-
types: [published]
6-
7-
jobs:
8-
release-linux-x64-binary:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: actions/cache@v4
12-
with:
13-
path: |
14-
~/.cache/bazelisk
15-
~/.cache/bazel-disk-cache
16-
key: ${{runner.os}}-bazel-cache
17-
- uses: actions/checkout@v4
18-
- run: 'bazel build --config=ci //:ecsact_cli'
19-
- run: 'cp ./bazel-bin/ecsact/cli/ecsact ecsact_${{ github.ref_name }}_linux_x64'
20-
- run: 'gh release upload ${{ github.ref_name }} ecsact_${{ github.ref_name }}_linux_x64'
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
OWNER: ${{ github.repository_owner }}
24-
REPO: ${{ github.event.repository.name }}
25-
26-
release-windows-x64-binary:
27-
runs-on: windows-latest
28-
steps:
29-
- uses: actions/cache@v4
30-
with:
31-
path: |
32-
/Users/runneradmin/AppData/Local/bazelisk
33-
/Users/runneradmin/.cache/bazel-disk-cache
34-
key: ${{runner.os}}-bazel-cache
35-
- uses: actions/checkout@v4
36-
- run: 'bazel build --config=ci //:ecsact_cli'
37-
- run: 'Copy-Item .\bazel-bin\ecsact\cli\ecsact.exe -Destination .\ecsact_${{ github.ref_name }}_windows_x64.exe'
38-
- run: 'gh release upload ${{ github.ref_name }} ./ecsact_${{ github.ref_name }}_windows_x64.exe'
39-
env:
40-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41-
OWNER: ${{ github.repository_owner }}
42-
REPO: ${{ github.event.repository.name }}
1+
name: release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release-linux-x64-binary:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/cache@v4
12+
with:
13+
path: |
14+
~/.cache/bazelisk
15+
~/.cache/bazel-disk-cache
16+
key: ${{runner.os}}-bazel-cache
17+
- uses: actions/checkout@v4
18+
- run: "bazel build --config=ci //:ecsact_cli"
19+
- run: "cp ./bazel-bin/ecsact/cli/ecsact ecsact_${{ github.ref_name }}_linux_x64"
20+
- run: "gh release upload ${{ github.ref_name }} ecsact_${{ github.ref_name }}_linux_x64"
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
OWNER: ${{ github.repository_owner }}
24+
REPO: ${{ github.event.repository.name }}
25+
26+
release-windows-x64-binary:
27+
runs-on: windows-latest
28+
steps:
29+
- uses: actions/cache@v4
30+
with:
31+
path: |
32+
/Users/runneradmin/AppData/Local/bazelisk
33+
/Users/runneradmin/.cache/bazel-disk-cache
34+
key: ${{runner.os}}-bazel-cache
35+
- uses: actions/checkout@v4
36+
- run: "bazel build --config=ci //:ecsact_cli"
37+
- run: 'Copy-Item .\bazel-bin\ecsact\cli\ecsact.exe -Destination .\ecsact_${{ github.ref_name }}_windows_x64.exe'
38+
- run: "gh release upload ${{ github.ref_name }} ./ecsact_${{ github.ref_name }}_windows_x64.exe"
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
OWNER: ${{ github.repository_owner }}
42+
REPO: ${{ github.event.repository.name }}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,4 +174,4 @@ All notable changes to this project will be documented in this file. See [conven
174174

175175
- - -
176176

177-
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
177+
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
<p align="center">
2-
<img src="https://ecsact.dev/external/ecsact_logo/ecsact-color.png" width="300" />
3-
</p>
4-
5-
# Ecsact CLI
6-
7-
The Ecsact CLI is _the_ utility for the following:
8-
9-
* Code generation frontend
10-
* Benchmark utility
11-
* Config details about Ecsact SDK installation and builtins
12-
13-
## Install
14-
15-
Ecsact CLI ships with the Ecsact SDK. [ecsact.dev/start](https://ecsact.dev/start)
16-
1+
<p align="center">
2+
<img src="https://ecsact.dev/external/ecsact_logo/ecsact-color.png" width="300" />
3+
</p>
4+
5+
# Ecsact CLI
6+
7+
The Ecsact CLI is _the_ utility for the following:
8+
9+
* Code generation frontend
10+
* Benchmark utility
11+
* Config details about Ecsact SDK installation and builtins
12+
13+
## Install
14+
15+
Ecsact CLI ships with the Ecsact SDK. [ecsact.dev/start](https://ecsact.dev/start)
16+

bazel/common.bazelrc

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
startup --windows_enable_symlinks
22
common --enable_bzlmod
33
common --registry=https://raw.githubusercontent.com/ecsact-dev/bazel_registry/main
4-
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
54
common --registry=https://raw.githubusercontent.com/zaucy/bazel-central-registry/add-curl-config2 # temporary
5+
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
66
common --registry=https://bcr.bazel.build
7-
87
build --enable_platform_specific_config
98
build --incompatible_enable_cc_toolchain_resolution
109
build --incompatible_strict_action_env
@@ -16,5 +15,3 @@ common:ci --announce_rc
1615
common:ci --verbose_failures
1716
common:ci --keep_going
1817
common:ci --disk_cache=~/.cache/bazel-disk-cache
19-
test:ci --test_output=errors
20-

bazel/tools/cc_stamp_header_generator.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,4 @@ int main(int argc, char* argv[]) {
8686
}
8787

8888
return 0;
89-
}
89+
}

bazel/tools/wsc.cmd

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
@echo off
2-
3-
@rem This is a mock value for the ecsact_cli repository. This gets set inside
4-
@rem the ecsact_sdk repository.
5-
echo STABLE_ECSACT_SDK_VERSION none
6-
1+
@echo off
2+
3+
@rem This is a mock value for the ecsact_cli repository. This gets set inside
4+
@rem the ecsact_sdk repository.
5+
echo STABLE_ECSACT_SDK_VERSION none

bazel/tools/wsc.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@ set -e
55
# This is a mock value for the ecsact_cli repository. This gets set inside the
66
# ecsact_sdk repository.
77
echo "STABLE_ECSACT_SDK_VERSION none"
8-

cog.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
pre_bump_hooks = [
22
# Ecsact pre 1.0.0 the 0.X.0 is our 'major' version
33
"buildozer 'set version {{version}}' 'set compatibility_level {{version.minor}}' //MODULE.bazel:%module",
4+
"bazel mod tidy",
45
]
56

67
post_bump_hooks = [

0 commit comments

Comments
 (0)