Skip to content

Commit

Permalink
Merge pull request #153 from chewing/update-dependency
Browse files Browse the repository at this point in the history
chore: update dependencies
  • Loading branch information
kanru authored May 19, 2024
2 parents de36ff1 + 161898f commit 68b9eff
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 10 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI

on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
merge_group:
types: [checks_requested]

env:
RUST_VERSION: "1.70"

jobs:
build:
runs-on: windows-latest
name: Smoke test - build only

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: ilammy/msvc-dev-cmd@0b201ec74fa43914dc39ae48a89fd1d8cb592756

- name: Setup rustup
run: |
rustup default ${{ env.RUST_VERSION }}
rustup update
- name: Build
run: |
cmake -B build
cmake --build build
2 changes: 2 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[submodule "libchewing"]
path = libchewing
url = https://github.com/chewing/libchewing.git
branch = 0.8.x
[submodule "libIME"]
path = libIME
url = https://github.com/EasyIME/libIME.git
branch = master
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.24.0)

# override default c/c++ flags, add /MT to link VC++ runtime statically.
set(CMAKE_USER_MAKE_RULES_OVERRIDE ${CMAKE_CURRENT_SOURCE_DIR}/cmake/c_flag_overrides.cmake)
Expand Down
2 changes: 0 additions & 2 deletions ChewingPreferences/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.8)

project(ChewingPreferences)

# http://www.utf8everywhere.org/
Expand Down
2 changes: 0 additions & 2 deletions ChewingTextService/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
cmake_minimum_required(VERSION 2.8.8)

project(ChewingTextService)

if(NOT DEFINED PROJECT_LIBCHEWING)
Expand Down
1 change: 0 additions & 1 deletion chewingwrapper/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
cmake_minimum_required(VERSION 2.8.8)
project(chewingwrapper)

if(NOT DEFINED PROJECT_LIBCHEWING OR NOT DEFINED CHEWING_DATA_PREFIX)
Expand Down
4 changes: 2 additions & 2 deletions chewingwrapper/test/test-chewingwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
int main()
{
// XXX: Use SetEnvironmentVariableA here will cause crash in Visual Studio.
_putenv("CHEWING_PATH="CHEWING_PATH);
_putenv("CHEWING_USER_PATH="CHEWING_USER_PATH);
_putenv("CHEWING_PATH=" CHEWING_PATH);
_putenv("CHEWING_USER_PATH=" CHEWING_USER_PATH);

const wchar_t EXPECT[] = { 0x6e2c, 0x8a66, 0 /* 測試 */ };
const wchar_t EXPECT_BOPOMOFO[] = { 0x3118, 0x311c, 0 /* ㄘㄜ */ };
Expand Down
2 changes: 1 addition & 1 deletion libchewing
Submodule libchewing updated 232 files

0 comments on commit 68b9eff

Please sign in to comment.