Skip to content

chore: update librime 295cb2a (librime 1.10.0) #547

chore: update librime 295cb2a (librime 1.10.0)

chore: update librime 295cb2a (librime 1.10.0) #547

Workflow file for this run

name: Commit CI
on:
workflow_dispatch:
push:
branches:
- '*'
tags:
- '![0-9]+.*'
paths:
- '**/**'
- '!*.md'
- '!.gitignore'
pull_request:
jobs:
build:
runs-on: windows-2022
env:
librime_build: 'submodule'
boost_version: 1.83.0
BOOST_ROOT: ${{ github.workspace }}\deps\boost_1_83_0
steps:
- name: Checkout last commit
uses: actions/checkout@v3
with:
submodules: recursive
- name: Configure build environment
run: |
copy env.vs2022.bat env.bat
$git_ref_name = git describe --always
echo "git_ref_name=$git_ref_name" >> $env:GITHUB_ENV
- name: Cache Boost
id: cache-boost
uses: actions/cache@v3
with:
path: |
${{ env.BOOST_ROOT }}
key: ${{ runner.os }}-boost-${{ env.boost_version }}
- name: Install Boost
if: steps.cache-boost.outputs.cache-hit != 'true'
run: .\install_boost.bat
- name: Add msbuild to PATH
uses: microsoft/[email protected]
- name: Copy Rime files
if: env.librime_build == 'stable'
run: .\github.install.bat
- name: Build librime
if: env.librime_build == 'submodule'
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
- name: Build Weasel
id: build_weasel
shell: bash
run: |
./build.bat data
./build.bat hant
./build.bat installer
- name: Compress Debug Symbols
shell: pwsh
run: |
Compress-Archive -Path output\*.pdb -CompressionLevel Optimal -DestinationPath .\output\archives\symbols.zip
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
if-no-files-found: error
path: |
.\output\archives\weasel*.exe
.\output\archives\symbols.zip