-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancements and minor bug fixes (#8)
* Enhancements and minor bug fixes * Closes #4. * Closes #7. * Handled word break characters properly. * Added basic meson workflow. * Use Ubuntu:22.04.
- Loading branch information
1 parent
de41a96
commit a2c9412
Showing
14 changed files
with
317 additions
and
184 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Meson Build and Test | ||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "**.cpp" | ||
- "**.h" | ||
- "**.build" | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- "**.cpp" | ||
- "**.h" | ||
- "**.build" | ||
|
||
jobs: | ||
build: | ||
name: Build and Test on ${{ matrix.os }} with Meson v${{ matrix.meson_version }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-22.04] | ||
meson_version: ["1.4.1"] | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.16 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
- name: Install Fcitx5 dev packages | ||
run: sudo apt install -y fcitx5-modules-dev | ||
- name: Build and install Varnam | ||
run: | | ||
cd ../ | ||
git clone https://github.com/varnamproject/govarnam.git govarnam | ||
cd govarnam | ||
make | ||
sudo make install | ||
- name: Install Meson | ||
run: python -m pip install meson==${{ matrix.meson_version }} ninja | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Configure Project | ||
run: meson setup builddir/ | ||
env: | ||
CC: g++ | ||
- name: Run Build | ||
run: | | ||
cd builddir | ||
meson compile | ||
- name: Run Tests | ||
run: meson test -C builddir/ -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
com.varnamproject.Fcitx5.Addon.varnamfcitx.metainfo.xml.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<component type="addon"> | ||
<id>com.varnamproject.Fcitx5.Addon.varnamfcitx</id> | ||
<extends>org.fcitx.Fcitx5</extends> | ||
<metadata_license>CC0-1.0</metadata_license> | ||
<project_license>GPL-3.0+</project_license> | ||
<name>Varnam Fcitx5</name> | ||
<summary>Varnam Engine for Fcitx5</summary> | ||
<developer id="com.varnamproject"> | ||
<name>The Varnam Project</name> | ||
</developer> | ||
<url type="homepage">https://varnamproject.com/</url> | ||
<url type="bugtracker">https://github.com/varnamproject/varnam-fcitx5/issues</url> | ||
<url type="vcs-browser">https://github.com/varnamproject/varnam-fcitx5</url> | ||
<project_group>Fcitx</project_group> | ||
<releases> | ||
<release version="0.0.1" date="2024-07-07"/> | ||
</releases> | ||
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
option('varnam_debug', type: 'boolean', value: false) | ||
option('varnam_debug', type: 'boolean', value: false) | ||
option('version', type: 'string', value: '') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.