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

Release v1.0.2 #27

Merged
merged 45 commits into from
Jan 18, 2024
Merged
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d3fedef
add formating config
amakropoulos Jan 15, 2024
ea92307
autoformatting the repo
amakropoulos Jan 15, 2024
f068ad4
Merge pull request #26 from undreamai/feature/autoformatting
amakropoulos Jan 15, 2024
ef48a72
use Awake instead of OnEnable
amakropoulos Jan 15, 2024
5d19c07
use async Task to make awaitable functions
amakropoulos Jan 15, 2024
9919343
add info on setting up LLM/LLMClient dynamically
amakropoulos Jan 15, 2024
5665c42
add dotnet format hook
amakropoulos Jan 16, 2024
db34cc4
add basic csproj to work with hooks
amakropoulos Jan 16, 2024
a3acc8c
rename precommit hook
amakropoulos Jan 16, 2024
1a5abe7
git ignore obj folder
amakropoulos Jan 16, 2024
479ba4d
repo setup
amakropoulos Jan 16, 2024
3cfc810
autoformat files
amakropoulos Jan 16, 2024
bc72492
Merge pull request #31 from undreamai/feature/autoformatting_precommit
amakropoulos Jan 16, 2024
3c3072e
Merge pull request #28 from undreamai/feature/awake_instead_of_onenable
amakropoulos Jan 16, 2024
9a24b36
git ignore some meta files
amakropoulos Jan 16, 2024
7f6c4c5
update bubbles whenever their RectTransform is resized
amakropoulos Jan 16, 2024
e98b2f5
fix formatting
amakropoulos Jan 16, 2024
8c830ca
Merge pull request #32 from undreamai/fix/unity_2021
amakropoulos Jan 16, 2024
52007a2
bump llamafile version to 0.6
amakropoulos Jan 16, 2024
f3e9401
rename to setup binaries
amakropoulos Jan 16, 2024
31b63ea
add unzip function, separate executable function
amakropoulos Jan 16, 2024
5e9eb72
bump llamafile to version 0.6
amakropoulos Jan 16, 2024
ac094eb
update autocomplete api file
amakropoulos Jan 16, 2024
992c17e
remove debug message
amakropoulos Jan 16, 2024
95e1399
allow exit callback for process
amakropoulos Jan 17, 2024
ebb37db
fallback to CPU if GPU fails
amakropoulos Jan 17, 2024
872ec9f
delete api and api.meta files
amakropoulos Jan 17, 2024
c5f3892
git ignore api and api.meta files
amakropoulos Jan 17, 2024
def2237
Merge pull request #33 from undreamai/feature/llamafile_v0.6
amakropoulos Jan 17, 2024
ec7236e
use sh -c for mac and ape for linux, escape spaces with single quotes
amakropoulos Jan 17, 2024
98c3ef0
Merge pull request #34 from undreamai/fix/macos_command
amakropoulos Jan 17, 2024
3af05db
move bubble deletion to Update
amakropoulos Jan 17, 2024
3f2a944
workflow to set the version
amakropoulos Jan 17, 2024
ba2329a
workflow to set the changelog
amakropoulos Jan 17, 2024
87ff340
release workflow
amakropoulos Jan 17, 2024
079a93a
Merge pull request #35 from undreamai/feature/release_workflows
amakropoulos Jan 17, 2024
6a1a313
update changelogs
amakropoulos Jan 17, 2024
fa8996f
use changelog from main as base
amakropoulos Jan 18, 2024
5db04d6
remove diff changelog
amakropoulos Jan 18, 2024
cc26501
git ignore CHANGELOG.release.md.meta
amakropoulos Jan 18, 2024
79bd97b
escape spaces according to OS
amakropoulos Jan 18, 2024
fe35acd
add to Readme: badges, how to help, history
amakropoulos Jan 18, 2024
700c0f1
bump version
amakropoulos Jan 18, 2024
697988f
Merge pull request #36 from undreamai/fix/release_fixes_and_readme
amakropoulos Jan 18, 2024
be177de
update changelogs
amakropoulos Jan 18, 2024
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
74 changes: 74 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
; see http://editorconfig.org/ for docs on this file

root = true

[*]
ignore_if_in_header = This code was generated by a tool|<auto-generated>
indent_style = space
indent_size = 4
; uncomment to help with sharing files across os's (i.e. network share or through local vm)
#end_of_line = lf
; avoid a bom, which causes endless problems with naive text tooling
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
; keeping auto-format enabled helps avoid merge hell for projects without CI-based format validation
#disable_auto_format = true

[*.cs]
; uncomment to enable full formatting of c# files
formatters = generic, uncrustify

[*.asmdef]
scrape_api = true

[**/Tests/**.asmdef]
scrape_api = false

[*.Tests.asmdef]
scrape_api = false

[*.md]
indent_size = 2
; trailing whitespace is unfortunately significant in markdown
trim_trailing_whitespace = false
; uncomment to enable basic formatting of markdown files
#formatters = generic

[{Makefile,makefile}]
; tab characters are part of the Makefile format
indent_style = tab

[*.asmdef]
indent_size = 4

[*.json]
indent_size = 2

[*.{vcproj,bat,cmd,xaml,tt,t4,ttinclude}]
end_of_line = crlf

; this VS-specific stuff is based on experiments to see how VS will modify a file after it has been manually edited.
; the settings are meant to closely match what VS does to minimize unnecessary diffs.
[*.{vcxproj,vcxproj.filters}]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8-bom
trim_trailing_whitespace = true
insert_final_newline = false
; must be broken out because of 51-char bug (https://github.com/editorconfig/editorconfig-visualstudio/issues/21)
[*.{csproj,pyproj,props,targets}]
indent_style = space
indent_size = 2
end_of_line = crlf
charset = utf-8-bom
trim_trailing_whitespace = true
insert_final_newline = false
[*.{sln,sln.template}]
indent_style = tab
indent_size = 4
end_of_line = crlf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = false
22 changes: 22 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
* text=auto eol=lf

# match .editorconfig

*.vcproj eol=crlf
*.bat eol=crlf
*.cmd eol=crlf
*.xaml eol=crlf
*.tt eol=crlf
*.t4 eol=crlf
*.ttinclude eol=crlf

*.vcxproj eol=crlf
*.vcxproj.filters eol=crlf

*.csproj eol=crlf
*.pyproj eol=crlf
*.props eol=crlf
*.targets eol=crlf

*.sln eol=crlf
*.sln.template eol=crlf
80 changes: 80 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Changelog
on:
pull_request:
types: [closed]

jobs:
build:
runs-on: ubuntu-latest
if: startsWith(github.base_ref, 'release/') && github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
token: ${{ github.token }}

- name: Build Changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v4.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
fromTag: main
toTag: ${{ github.base_ref }}
outputFile: CHANGELOG.release.md
configurationJson: |
{
"pr_template": "- #{{TITLE}} (PR: ##{{NUMBER}})",
"categories": [
{
"title": "### 🚀 Features",
"labels": ["feature", "enhancement"]
},
{
"title": "### 🐛 Fixes",
"labels": ["fix", "bug"]
},
{
"title": "### 🧪 Test",
"labels": ["test"]
},
{
"title": "### 📦 General",
"labels": []
},
{
"title": "### 📖 Documentation",
"labels": ["doc"]
}
],
"label_extractor": [
{
"pattern": "(.*)/(.+)",
"on_property": "branch",
"target": "$1",
"flags": "gu"
}
]
}

- name: Create CHANGELOG.md
run: |
echo "## ${GITHUB_BASE_REF#release/}" > CHANGELOG.md.new
cat CHANGELOG.release.md | sed -e 's:## :### :g' >> CHANGELOG.md.new
echo "" >> CHANGELOG.md.new
git checkout origin/main -- CHANGELOG.md
cat CHANGELOG.md >> CHANGELOG.md.new;
mv CHANGELOG.md.new CHANGELOG.md

git config --global user.name $GITHUB_ACTOR
git config --global user.email $GITHUB_ACTOR@users.noreply.github.com
git add CHANGELOG.md
git add CHANGELOG.release.md
git commit -m "update changelogs"

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.base_ref }}
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release
on:
pull_request:
types: [closed]

jobs:
build:
runs-on: ubuntu-latest
if: github.base_ref == 'main' && startsWith(github.head_ref, 'release/') && github.event.pull_request.merged == true
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Get Variables
run: echo "version=$(cat VERSION)" >> $GITHUB_ENV

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.version }}
release_name: "Release ${{ env.version }}"
body_path: CHANGELOG.md.diff
draft: false
prerelease: false
36 changes: 36 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Version

on:
pull_request:
types:
- opened

jobs:
set_version:
runs-on: ubuntu-latest
if: startsWith(github.head_ref, 'release/')
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
persist-credentials: false
token: ${{ github.token }}

- name: Set VERSION
run: |
version="${GITHUB_HEAD_REF#release/}"
echo $version > VERSION
sed -i "s/\"version\": \".*\"/\"version\": \"${version#v}\"/" package.json

git config --global user.name $GITHUB_ACTOR
git config --global user.email $GITHUB_ACTOR@users.noreply.github.com
git add VERSION
git add package.json
git commit -m "update VERSION"

- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ github.token }}
branch: ${{ github.head_ref }}
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
.vscode
Samples
Samples.meta
obj/
obj.meta
bin/
bin.meta
LLMUnity.csproj.meta
hooks.meta
hooks/pre-commit.meta
setup.sh.meta
*.api
*.api.meta
CHANGELOG.release.md.meta
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
## v1.0.2
#### 🚀 Features

- Code auto-formatting (PR: #26)
- Setup auto-formatting precommit (PR: #31)
- Start server on Awake instead of OnEnable (PR: #28)
- AMD support, switch to llamafile 0.6 (PR: #33)
- Release workflows (PR: #35)

#### 🐛 Fixes

- Support Unity 2021 LTS (PR: #32)
- Fix macOS command (PR: #34)
- Release fixes and readme (PR: #36)


## v1.0.1
- Fix running commands for projects with space in path
- closes #8
14 changes: 14 additions & 0 deletions CHANGELOG.release.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
### 🚀 Features

- Code auto-formatting (PR: #26)
- Setup auto-formatting precommit (PR: #31)
- Start server on Awake instead of OnEnable (PR: #28)
- AMD support, switch to llamafile 0.6 (PR: #33)
- Release workflows (PR: #35)

### 🐛 Fixes

- Support Unity 2021 LTS (PR: #32)
- Fix macOS command (PR: #34)
- Release fixes and readme (PR: #36)

Loading