Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pusnow committed Apr 26, 2023
1 parent 7ebd2f4 commit f8a16df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Expand Up @@ -35,23 +35,23 @@ jobs:
run: sudo apt-get update && sudo apt-get install ${{ matrix.crossbuild }} qemu-user-static
if: matrix.name == 'linux' && matrix.arch != 'x86_64'
- name: Configure (Windows)
run: meson setup --prefix=C:\mecab -Db_vscrt=static_from_buildtype -Dbuildtype=debugoptimized -Dbuild_dic=false -Dbuild_python=true -Dbuild_java=true builddir
run: meson setup --prefix=C:\mecab -Db_vscrt=static_from_buildtype -Dbuildtype=debugoptimized -Dbuild_dic=false builddir
working-directory: ${{ github.workspace }}
if: matrix.name == 'windows'
- name: Configure (macOS)
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized -Dbuild_dic=false -Dbuild_python=true -Dbuild_java=true builddir
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized -Dbuild_dic=false builddir
working-directory: ${{ github.workspace }}
if: matrix.name == 'macos' && matrix.arch == 'x86_64'
- name: Configure (Crossbuild macOS)
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized --cross-file=cross/${{ matrix.arch }}-darwin-clang.txt -Dbuild_dic=false -Dbuild_python=true -Dbuild_java=true builddir
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized --cross-file=cross/${{ matrix.arch }}-darwin-clang.txt -Dbuild_dic=false builddir
working-directory: ${{ github.workspace }}
if: matrix.name == 'macos' && matrix.arch != 'x86_64'
- name: Configure (Linux)
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized -Dbuild_static=true -Dbuild_dic=true -Dbuild_python=true -Dbuild_java=true builddir
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized -Dbuild_static=true -Dbuild_dic=true builddir
working-directory: ${{ github.workspace }}
if: matrix.name == 'linux' && matrix.arch == 'x86_64'
- name: Configure (Crossbuild Linux)
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized -Dbuild_static=true --cross-file=cross/${{ matrix.arch }}-linux-gnu.txt -Dbuild_dic=false -Dbuild_python=true -Dbuild_java=true builddir
run: meson setup --prefix=/opt/mecab -Dbuildtype=debugoptimized -Dbuild_static=true --cross-file=cross/${{ matrix.arch }}-linux-gnu.txt -Dbuild_dic=false builddir
working-directory: ${{ github.workspace }}
env:
QEMU_LD_PREFIX: /usr/${{ matrix.arch }}-linux-gnu/
Expand Down
4 changes: 0 additions & 4 deletions test.py
Expand Up @@ -6,11 +6,7 @@

try:
print(MeCab.VERSION)
print("0")
print(dir(MeCab))
print(dir(MeCab.Tagger))
t = MeCab.Tagger()
print("1", t)
print(t.parse(sentence))

m = t.parseToNode(sentence)
Expand Down

0 comments on commit f8a16df

Please sign in to comment.