diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7ce4de..2b14edc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,3 +44,20 @@ jobs: wget https://github.com/rime/librime/releases/download/1.11.2/rime-5b09f35-Windows-msvc-x64.7z -O rime.7z 7z x rime.7z LIBRIME_INCLUDE_DIR=$PWD/dist/include LIBRIME_LIB_DIR=$PWD/dist/lib LIB=$PWD/dist/lib cargo build --release + build-macos: + runs-on: macos-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + components: clippy + - name: Install dependencies + shell: bash + run: | + set -eux -o pipefail + wget https://github.com/rime/librime/releases/download/1.11.2/rime-5b09f35-macOS-universal.tar.bz2 -O rime.tar.bz2 + 7z x rime.tar.bz2 + 7z x rime.tar + LIBRIME_INCLUDE_DIR=$PWD/dist/include LIBRIME_LIB_DIR=$PWD/dist/lib LIB=$PWD/dist/lib cargo build --release diff --git a/README.md b/README.md index a57780c..0309fda 100644 --- a/README.md +++ b/README.md @@ -213,7 +213,7 @@ https://user-images.githubusercontent.com/14821247/213079440-f0ab2ddd-5e44-4e41- - [ ] 測試其他 LSP clients - [x] 测试不同操作系统和 librime 版本 - [ ] 测试与不同 rime 配置的兼容性 -- [ ] 配置 GitHub CI,编译各个平台的 Release +- [x] 配置 GitHub CI,编译各个平台的 Release - [ ] 各种编辑器插件 (help wanted) ## Known Issues