Skip to content
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

chore: sync with ecsact_common #66

Merged
merged 4 commits into from
Jun 20, 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
2 changes: 1 addition & 1 deletion .bazelversion
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.1.2
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

23 changes: 16 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,31 @@
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/[email protected]
with: { clang-format-version: "16" }
- 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@v3
- uses: actions/cache@v4
with:
path: |
/Users/runneradmin/AppData/Local/bazelisk
Expand All @@ -33,9 +41,10 @@ jobs:
working-directory: test

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

28 changes: 14 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# bazel
/bazel-*
/user.bazelrc
# https://github.com/hedronvision/bazel-compile-commands-extractor
/compile_commands.json
/external
# clangd
/.cache/
# ecsact codegen
*.ecsact.*
# bazel
/bazel-*
/user.bazelrc

# https://github.com/hedronvision/bazel-compile-commands-extractor
/compile_commands.json
/external

# clangd
/.cache/

# ecsact codegen
*.ecsact.*

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,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).
Loading