Skip to content

Commit

Permalink
fix c1f24cf. and add error detection in ci workflow. (rime#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
fxliang authored Nov 30, 2023
1 parent ec085c7 commit 1f4b103
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,13 @@ jobs:
.\build.bat data
.\build.bat hant
.\build.bat installer
if: ${{ success() }}

- name: Compress Debug Symbols
shell: pwsh
run: |
Compress-Archive -Path output\*.pdb -CompressionLevel Optimal -DestinationPath .\output\archives\symbols.zip
if: ${{ success() }}

- name: Upload artifacts
uses: actions/upload-artifact@v3
Expand All @@ -68,3 +70,4 @@ jobs:
path: |
.\output\archives\weasel*.exe
.\output\archives\symbols.zip
if: ${{ success() }}
4 changes: 4 additions & 0 deletions .github/workflows/release-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,19 @@ jobs:
.\build.bat data
.\build.bat hant
.\build.bat installer
if: ${{ success() }}

- name: Compress Debug Symbols
shell: pwsh
run: |
Compress-Archive -Path output\*.pdb -CompressionLevel Optimal -DestinationPath .\output\archives\symbols.zip
if: ${{ success() }}

- name: Extract changelog
shell: pwsh
run: |
.\extract_changelog.ps1
if: ${{ success() }}

- name: Release
uses: softprops/action-gh-release@v1
Expand All @@ -68,3 +71,4 @@ jobs:
./output/archives/weasel*.exe
./output/archives/symbols.zip
body_path: ${{ github.workspace }}/RELEASE_CHANGELOG.md
if: ${{ success() }}
2 changes: 1 addition & 1 deletion RimeWithWeasel/RimeWithWeasel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ static void _UpdateUIStyle(RimeConfig* config, UI* ui, bool initialize)
{std::string("vertical"), true}
};
bool _text_orientation_bool = false;
_RimeParseStringOptWithFallback(config, "style/text_orientation", _text_orientation_bool, _text_orientation, false);
_RimeParseStringOpt(config, "style/text_orientation", _text_orientation_bool, _text_orientation);
if(_text_orientation_bool)
style.layout_type = UIStyle::LAYOUT_VERTICAL_TEXT;
_RimeGetStringWithFunc(config, "style/label_format", style.label_text_format);
Expand Down

0 comments on commit 1f4b103

Please sign in to comment.