use rimeinn/deploy-schema #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-24.04 | |
env: | |
EMSCRIPTEN_VERSION: '3.1.74' | |
steps: | |
- name: Build rime-ice | |
uses: rimeinn/deploy-schema@dev | |
with: | |
user-recipe-list: |- | |
iDvel/rime-ice:others/recipes/full | |
shared-recipe-list: | |
package-items: |- | |
build | |
lua | |
opencc | |
custom_phrase.txt | |
- uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install dependencies | |
run: | | |
sudo apt install -y --no-install-recommends \ | |
ninja-build \ | |
gettext | |
npm i -g pnpm | |
pnpm i | |
./scripts/install-deps.sh | |
- name: Install emsdk | |
run: | | |
git clone https://github.com/emscripten-core/emsdk | |
cd emsdk | |
./emsdk install ${{ env.EMSCRIPTEN_VERSION }} | |
./emsdk activate ${{ env.EMSCRIPTEN_VERSION }} | |
- name: Build | |
run: | | |
. emsdk/emsdk_env.sh | |
pnpm run configure | |
pnpm run build | |
npm pack | |
- name: Build demo | |
run: | | |
cd demo | |
mv /tmp/deploy-schema/artifact.zip public | |
pnpm i | |
pnpm run build | |
mkdir rime-ice | |
mv dist rime-ice # Wrap a directory for artifact | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: rime-ice | |
path: | | |
demo/rime-ice | |
- name: Setup tmate session | |
if: ${{ failure() }} | |
uses: mxschmitt/action-tmate@v3 | |
- name: Release | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: 'marvinpinto/action-automatic-releases@latest' | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
automatic_release_tag: latest | |
prerelease: true | |
title: "Nightly Build" | |
files: | | |
fcitx5-rime-*.tgz |