Skip to content

Commit e210b96

Browse files
committed
ci: normalize linux artifact names across architectures
1 parent 44be12a commit e210b96

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,27 @@ jobs:
108108
--linux deb AppImage \
109109
--${{ matrix.arch }}
110110
111+
- name: Normalize artifact names
112+
env:
113+
TAG_NAME: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.tag || github.ref_name }}
114+
run: |
115+
set -euo pipefail
116+
VERSION="${TAG_NAME#v}"
117+
if [[ "${{ matrix.arch }}" == "x64" ]]; then
118+
CANON_ARCH="amd64"
119+
elif [[ "${{ matrix.arch }}" == "arm64" ]]; then
120+
CANON_ARCH="arm64"
121+
else
122+
echo "Unsupported matrix arch: ${{ matrix.arch }}" >&2
123+
exit 1
124+
fi
125+
126+
DEB_FILE="$(ls -1 dist/*.deb | head -n1)"
127+
APPIMAGE_FILE="$(ls -1 dist/*.AppImage | head -n1)"
128+
129+
mv -f "${DEB_FILE}" "dist/codex-desktop-${VERSION}-linux-${CANON_ARCH}.deb"
130+
mv -f "${APPIMAGE_FILE}" "dist/codex-desktop-${VERSION}-linux-${CANON_ARCH}.AppImage"
131+
111132
- name: Verify packaged CLI binary
112133
env:
113134
APP_OUT_DIR: ${{ matrix.arch == 'arm64' && 'dist/linux-arm64-unpacked' || 'dist/linux-unpacked' }}

0 commit comments

Comments
 (0)