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

chore: update dependencies #153

Merged
merged 3 commits into from
May 19, 2024
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
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