|
20 | 20 | with: |
21 | 21 | python-version: '3.14' |
22 | 22 |
|
| 23 | + - name: Check prebuilder js-testing release and fcitx5-js testing release |
| 24 | + if: ${{ github.ref != 'refs/heads/master' }} |
| 25 | + env: |
| 26 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 27 | + run: | |
| 28 | + if gh api repos/fcitx-contrib/fcitx5-prebuilder/releases/tags/js-testing > /dev/null 2>&1; then |
| 29 | + echo "PREBUILDER_TAG=js-testing" >> $GITHUB_ENV |
| 30 | + fi |
| 31 | + if gh api repos/fcitx-contrib/fcitx5-js/releases/tags/testing > /dev/null 2>&1; then |
| 32 | + echo "JS_TAG=testing" >> $GITHUB_ENV |
| 33 | + fi |
| 34 | +
|
23 | 35 | - name: Install dependencies |
24 | 36 | run: | |
25 | 37 | sudo apt install -y ninja-build \ |
|
30 | 42 |
|
31 | 43 | - name: Install Fcitx5 dev package |
32 | 44 | run: | |
33 | | - wget https://github.com/fcitx-contrib/fcitx5-js/releases/download/latest/fcitx5-js-dev.tar.bz2 |
| 45 | + wget https://github.com/fcitx-contrib/fcitx5-js/releases/download/${{ env.JS_TAG || 'latest' }}/fcitx5-js-dev.tar.bz2 |
34 | 46 | tar xjf fcitx5-js-dev.tar.bz2 -C build/js/usr |
35 | 47 |
|
36 | 48 | - name: Get emscripten version |
@@ -101,9 +113,19 @@ jobs: |
101 | 113 | name: artifact-js |
102 | 114 | path: build/js |
103 | 115 |
|
| 116 | + - name: Check fcitx5-online testing release |
| 117 | + if: ${{ github.ref != 'refs/heads/master' }} |
| 118 | + shell: bash |
| 119 | + env: |
| 120 | + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 121 | + run: | |
| 122 | + if gh api repos/fcitx/fcitx5-online/releases/tags/testing > /dev/null 2>&1; then |
| 123 | + echo "ONLINE_TAG=testing" >> $GITHUB_ENV |
| 124 | + fi |
| 125 | +
|
104 | 126 | - name: Install dependencies |
105 | 127 | run: | |
106 | | - curl -LO --output-dir cache https://github.com/fcitx/fcitx5-online/releases/download/latest/fcitx5-online.zip |
| 128 | + curl -LO --output-dir cache https://github.com/fcitx/fcitx5-online/releases/download/${{ env.ONLINE_TAG || 'latest' }}/fcitx5-online.zip |
107 | 129 | curl -LO --output-dir tests/rime https://github.com/rime/librime-predict/releases/download/data-1.0/predict.db |
108 | 130 | unzip cache/fcitx5-online.zip |
109 | 131 | npm i -g pnpm |
|
0 commit comments