Skip to content

chore: sync with ecsact_common #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true

5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.20.4
- uses: crate-ci/typos@v1.19.0

formatting-check:
name: Formatting Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: greut/eclint-action@v0
- uses: jidicula/[email protected]
with: { clang-format-version: "18" }

test-windows:
if: github.event_name == 'merge_group'
runs-on: windows-latest
steps:
- uses: actions/cache@v4
Expand All @@ -39,6 +41,7 @@ jobs:
working-directory: test

test-linux:
if: github.event_name == 'merge_group'
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
Expand Down
84 changes: 42 additions & 42 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: release
on:
release:
types: [published]
jobs:
release-linux-x64-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v4
- run: 'bazel build --config=ci //:ecsact_cli'
- run: 'cp ./bazel-bin/ecsact/cli/ecsact ecsact_${{ github.ref_name }}_linux_x64'
- run: 'gh release upload ${{ github.ref_name }} ecsact_${{ github.ref_name }}_linux_x64'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
release-windows-x64-binary:
runs-on: windows-latest
steps:
- 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: 'bazel build --config=ci //:ecsact_cli'
- run: 'Copy-Item .\bazel-bin\ecsact\cli\ecsact.exe -Destination .\ecsact_${{ github.ref_name }}_windows_x64.exe'
- run: 'gh release upload ${{ github.ref_name }} ./ecsact_${{ github.ref_name }}_windows_x64.exe'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
name: release

on:
release:
types: [published]

jobs:
release-linux-x64-binary:
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
with:
path: |
~/.cache/bazelisk
~/.cache/bazel-disk-cache
key: ${{runner.os}}-bazel-cache
- uses: actions/checkout@v4
- run: "bazel build --config=ci //:ecsact_cli"
- run: "cp ./bazel-bin/ecsact/cli/ecsact ecsact_${{ github.ref_name }}_linux_x64"
- run: "gh release upload ${{ github.ref_name }} ecsact_${{ github.ref_name }}_linux_x64"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}

release-windows-x64-binary:
runs-on: windows-latest
steps:
- 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: "bazel build --config=ci //:ecsact_cli"
- run: 'Copy-Item .\bazel-bin\ecsact\cli\ecsact.exe -Destination .\ecsact_${{ github.ref_name }}_windows_x64.exe'
- run: "gh release upload ${{ github.ref_name }} ./ecsact_${{ github.ref_name }}_windows_x64.exe"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OWNER: ${{ github.repository_owner }}
REPO: ${{ github.event.repository.name }}
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,4 @@ All notable changes to this project will be documented in this file. See [conven

- - -

Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<p align="center">
<img src="https://ecsact.dev/external/ecsact_logo/ecsact-color.png" width="300" />
</p>
# Ecsact CLI
The Ecsact CLI is _the_ utility for the following:
* Code generation frontend
* Benchmark utility
* Config details about Ecsact SDK installation and builtins
## Install
Ecsact CLI ships with the Ecsact SDK. [ecsact.dev/start](https://ecsact.dev/start)
<p align="center">
<img src="https://ecsact.dev/external/ecsact_logo/ecsact-color.png" width="300" />
</p>

# Ecsact CLI

The Ecsact CLI is _the_ utility for the following:

* Code generation frontend
* Benchmark utility
* Config details about Ecsact SDK installation and builtins

## Install

Ecsact CLI ships with the Ecsact SDK. [ecsact.dev/start](https://ecsact.dev/start)

5 changes: 1 addition & 4 deletions bazel/common.bazelrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
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://raw.githubusercontent.com/zaucy/bazel-central-registry/add-curl-config2 # temporary
common --registry=https://raw.githubusercontent.com/bazelboost/registry/main
common --registry=https://bcr.bazel.build

build --enable_platform_specific_config
build --incompatible_enable_cc_toolchain_resolution
build --incompatible_strict_action_env
Expand All @@ -16,5 +15,3 @@ common:ci --announce_rc
common:ci --verbose_failures
common:ci --keep_going
common:ci --disk_cache=~/.cache/bazel-disk-cache
test:ci --test_output=errors

2 changes: 1 addition & 1 deletion bazel/tools/cc_stamp_header_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,4 @@ int main(int argc, char* argv[]) {
}

return 0;
}
}
11 changes: 5 additions & 6 deletions bazel/tools/wsc.cmd
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@echo off

@rem This is a mock value for the ecsact_cli repository. This gets set inside
@rem the ecsact_sdk repository.
echo STABLE_ECSACT_SDK_VERSION none

@echo off

@rem This is a mock value for the ecsact_cli repository. This gets set inside
@rem the ecsact_sdk repository.
echo STABLE_ECSACT_SDK_VERSION none
1 change: 0 additions & 1 deletion bazel/tools/wsc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,3 @@ set -e
# This is a mock value for the ecsact_cli repository. This gets set inside the
# ecsact_sdk repository.
echo "STABLE_ECSACT_SDK_VERSION none"

1 change: 1 addition & 0 deletions cog.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
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",
"bazel mod tidy",
]

post_bump_hooks = [
Expand Down
Loading