Skip to content

Commit c9a604b

Browse files
committed
fix: use explicit matrix entries and step-level env for CI compatibility
1 parent e51f8b0 commit c9a604b

1 file changed

Lines changed: 39 additions & 14 deletions

File tree

.github/workflows/build.yml

Lines changed: 39 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -70,39 +70,64 @@ jobs:
7070
strategy:
7171
fail-fast: false
7272
matrix:
73-
edition: [zh, en]
74-
os: [windows-latest, macos-15, ubuntu-latest, ubuntu-24.04-arm]
7573
include:
74+
# Chinese edition (汉化版)
7675
- os: windows-latest
7776
platform: win-x64
7877
archive_ext: zip
78+
edition: zh
79+
pkg: '@qingchencloud/openclaw-zh'
7980
- os: macos-15
8081
platform: mac-arm64
8182
archive_ext: tar.gz
83+
edition: zh
84+
pkg: '@qingchencloud/openclaw-zh'
8285
- os: ubuntu-latest
8386
platform: linux-x64
8487
archive_ext: tar.gz
88+
edition: zh
89+
pkg: '@qingchencloud/openclaw-zh'
8590
- os: ubuntu-24.04-arm
8691
platform: linux-arm64
8792
archive_ext: tar.gz
88-
- edition: zh
93+
edition: zh
8994
pkg: '@qingchencloud/openclaw-zh'
90-
- edition: en
95+
# Official edition (官方原版)
96+
- os: windows-latest
97+
platform: win-x64
98+
archive_ext: zip
99+
edition: en
100+
pkg: 'openclaw'
101+
- os: macos-15
102+
platform: mac-arm64
103+
archive_ext: tar.gz
104+
edition: en
105+
pkg: 'openclaw'
106+
- os: ubuntu-latest
107+
platform: linux-x64
108+
archive_ext: tar.gz
109+
edition: en
110+
pkg: 'openclaw'
111+
- os: ubuntu-24.04-arm
112+
platform: linux-arm64
113+
archive_ext: tar.gz
114+
edition: en
91115
pkg: 'openclaw'
92-
93-
# Skip builds when user selects a specific edition via workflow_dispatch
94-
if: >-
95-
github.event_name != 'workflow_dispatch' ||
96-
github.event.inputs.edition == 'both' ||
97-
github.event.inputs.edition == matrix.edition
98116

99117
runs-on: ${{ matrix.os }}
100118

101-
env:
102-
PKG_VERSION: ${{ matrix.edition == 'zh' && needs.resolve-version.outputs.version_zh || needs.resolve-version.outputs.version_en }}
103-
ARCHIVE_PREFIX: ${{ matrix.edition == 'zh' && 'openclaw-zh' || 'openclaw' }}
104-
105119
steps:
120+
- name: Set edition variables
121+
shell: bash
122+
run: |
123+
if [ "${{ matrix.edition }}" = "zh" ]; then
124+
echo "PKG_VERSION=${{ needs.resolve-version.outputs.version_zh }}" >> $GITHUB_ENV
125+
echo "ARCHIVE_PREFIX=openclaw-zh" >> $GITHUB_ENV
126+
else
127+
echo "PKG_VERSION=${{ needs.resolve-version.outputs.version_en }}" >> $GITHUB_ENV
128+
echo "ARCHIVE_PREFIX=openclaw" >> $GITHUB_ENV
129+
fi
130+
106131
- name: Checkout
107132
uses: actions/checkout@v4
108133

0 commit comments

Comments
 (0)