Skip to content

Commit

Permalink
Update commit-ci.yml
Browse files Browse the repository at this point in the history
github.install.bat
  • Loading branch information
fxliang authored Feb 28, 2024
1 parent f44a683 commit 30e0945
Showing 1 changed file with 3 additions and 30 deletions.
33 changes: 3 additions & 30 deletions .github/workflows/commit-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,39 +61,12 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v2

# cache librime
- name: Cache librime
if: env.librime_build == 'submodule'
id: cache-librime
uses: actions/cache@v4
with:
path: |
librime
key: ${{ runner.os }}-librime-${{ env.librime_id }}

# build librime if not cached
- name: Build librime
if: ${{ env.librime_build == 'submodule' && steps.cache-librime.outputs.cache-hit != 'true' }}
env:
RIME_PLUGINS: hchunhui/librime-lua lotem/librime-octagram rime/librime-predict
shell: bash
run: |
# load plugins
pushd librime
./action-install-plugins-windows.bat
popd
./build.bat librime

# build librime if cached
- name: Copy librime built files cached
if: ${{ env.librime_build == 'submodule' && steps.cache-librime.outputs.cache-hit == 'true' }}
# Copy librime built files frome librime
- name: Copy librime built files frome librime
shell: bash
run: |
cp ./librime/dist_x64/lib/rime* ./lib64/
cp ./librime/dist_x64/lib/rime.dll ./output/
cp ./librime/dist_x64/include/*.h ./include/
cp ./librime/dist_Win32/lib/rime* ./lib/
cp ./librime/dist_Win32/lib/rime.dll ./output/Win32/
./github.install.bat
- name: Build Weasel
id: build_weasel
Expand Down

0 comments on commit 30e0945

Please sign in to comment.