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

pin the version of windows #76

Merged
merged 4 commits into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:

windows:
name: windows
runs-on: windows-latest
runs-on: windows-2019
needs: build
strategy:
fail-fast: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-cygwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
test:
name: Test
runs-on: windows-latest
runs-on: windows-2019
steps:
- run: git config --global core.autoCRLF false
- uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-mingw.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
test:
name: Test
runs-on: windows-latest
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
Expand Down
38 changes: 35 additions & 3 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ on:
- "mecab/**"

jobs:
test:
name: Test
runs-on: windows-latest
test-windows-2019:
name: Test on Windows 2019
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -44,3 +44,35 @@ jobs:
./run-eval.sh
./run-cost-train.sh
working-directory: mecab/tests

test-windows-2022:
name: Test on Windows 2022
runs-on: windows-2022
strategy:
fail-fast: false
matrix:
machine:
- x64
- x86
steps:
- uses: actions/checkout@v3
- name: generate Makefile.msvc
shell: bash
# Makefile.msvc will be generated by autotools, but it is hard to install autotools to windows
# so, just use perl here
run: |
perl -pe 's/[@]VERSION[@]/develop/g; s/[@]DIC_VERSION[@]/0/g;' Makefile.msvc.in > Makefile.msvc
working-directory: mecab/src
- name: build
shell: cmd
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{ matrix.machine }}
nmake -f Makefile.msvc MACHINE=${{ matrix.machine }}
working-directory: mecab/src
- name: test
shell: bash
run: |
./run-dics.sh
./run-eval.sh
./run-cost-train.sh
working-directory: mecab/tests