Skip to content

Commit 48dd8c0

Browse files
authored
Add glibc version into tar gz filename (#83)
* Add glibc version into tar gz filename see #56 * Update tagged_release.yml
1 parent bb0cf2d commit 48dd8c0

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/tagged_release.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ jobs:
5050
release_branch_name=${release_version%.*}.x
5151
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
5252
53+
- name: Get glibc version
54+
if: matrix.os == 'ubuntu-latest'
55+
run: |
56+
version=$(ldd --version | head -n 1 | awk '{print $NF}')
57+
echo "GLIBC_VERSION=$version" >> $GITHUB_ENV
58+
echo "::set-output name=glibc_version::$version"
59+
5360
- name: Set antora version
5461
if: matrix.os == 'ubuntu-latest'
5562
run: yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/ame-guide/antora.yml
@@ -166,7 +173,9 @@ jobs:
166173

167174
- name: Build electron app (Linux)
168175
if: matrix.os == 'ubuntu-latest'
169-
run: npm run electron-builder-linux-prod
176+
run: |
177+
npm run electron-builder-linux-prod
178+
mv core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux.tar.gz core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux-glibc-${{ env.GLIBC_VERSION }}.tar.gz
170179
working-directory: core
171180

172181
- name: Build electron app (Windows)
@@ -208,7 +217,7 @@ jobs:
208217
overwrite: true
209218
prerelease: false
210219
repo_token: ${{ secrets.GITHUB_TOKEN }}
211-
file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux.tar.gz
220+
file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux-glibc-V${{ env.GLIBC_VERSION }}.tar.gz
212221
tag: v${{ github.event.inputs.release_version }}
213222

214223
- name: Create GitHub pre-release (Linux)
@@ -218,7 +227,7 @@ jobs:
218227
overwrite: true
219228
prerelease: true
220229
repo_token: ${{ secrets.GITHUB_TOKEN }}
221-
file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux.tar.gz
230+
file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux-glibc-V${{ env.GLIBC_VERSION }}.tar.gz
222231
tag: v${{ github.event.inputs.release_version }}
223232

224233
- name: Create GitHub release (Windows)

0 commit comments

Comments
 (0)