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

add cygwin workflow #28

Merged
merged 13 commits into from
Feb 8, 2020
44 changes: 44 additions & 0 deletions .github/workflows/test-cygwin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: mecab on cygwin

on:
pull_request:
paths:
- '.github/workflows/test-cygwin.yml'
- 'mecab/**'
push:
branches:
- master
paths:
- '.github/workflows/test-cygwin.yml'
- 'mecab/**'

jobs:
test:
name: Test
runs-on: windows-latest
steps:
- run: git config --global core.autoCRLF false
- uses: actions/checkout@v2
- name: Install cygwin base packages with chocolatey
run: |
choco config get cacheLocation
choco install --no-progress cygwin
- name: Install cygwin additional packages
run: |
C:\tools\cygwin\cygwinsetup.exe -qgnNdO -R C:/tools/cygwin -s http://mirrors.kernel.org/sourceware/cygwin/ -P autoconf,bison,gcc-g++,make,libtool,m4,aclocal,automake,libiconv,gettext-devel
shell: cmd
- name: Set ENV
run: |
echo '::set-env name=PATH::C:\tools\cygwin\bin;C:\tools\cygwin\usr\bin'
- name: configure
run: |
bash.exe -c ./autogen.sh
bash.exe -c ./configure
shell: cmd
working-directory: mecab
- name: make
run: |
make all
make check
shell: cmd
working-directory: mecab
4 changes: 0 additions & 4 deletions mecab/src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#include <iostream>
#include <sstream>

#ifdef __CYGWIN__
#define _GLIBCXX_EXPORT_TEMPLATE
#endif

#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
Expand Down
2 changes: 1 addition & 1 deletion mecab/src/winmain.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// Copyright(C) 2001-2011 Taku Kudo <taku@chasen.org>
// Copyright(C) 2004-2006 Nippon Telegraph and Telephone Corporation
#if defined(_WIN32) || defined(__CYGWIN__)
#if defined(_WIN32)

#include <windows.h>
#include <string>
Expand Down