From 48dd8c0dcf2e41c0912eb4ed0941c500d07b5ba0 Mon Sep 17 00:00:00 2001 From: Michele Santoro <10807610+michelu89@users.noreply.github.com> Date: Tue, 5 Sep 2023 14:00:06 +0200 Subject: [PATCH] Add glibc version into tar gz filename (#83) * Add glibc version into tar gz filename see https://github.com/eclipse-esmf/esmf-aspect-model-editor/issues/56 * Update tagged_release.yml --- .github/workflows/tagged_release.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tagged_release.yml b/.github/workflows/tagged_release.yml index 376c47ce..ca03bcd2 100644 --- a/.github/workflows/tagged_release.yml +++ b/.github/workflows/tagged_release.yml @@ -50,6 +50,13 @@ jobs: release_branch_name=${release_version%.*}.x echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV + - name: Get glibc version + if: matrix.os == 'ubuntu-latest' + run: | + version=$(ldd --version | head -n 1 | awk '{print $NF}') + echo "GLIBC_VERSION=$version" >> $GITHUB_ENV + echo "::set-output name=glibc_version::$version" + - name: Set antora version if: matrix.os == 'ubuntu-latest' run: yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/ame-guide/antora.yml @@ -166,7 +173,9 @@ jobs: - name: Build electron app (Linux) if: matrix.os == 'ubuntu-latest' - run: npm run electron-builder-linux-prod + run: | + npm run electron-builder-linux-prod + 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 working-directory: core - name: Build electron app (Windows) @@ -208,7 +217,7 @@ jobs: overwrite: true prerelease: false repo_token: ${{ secrets.GITHUB_TOKEN }} - file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux.tar.gz + file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux-glibc-V${{ env.GLIBC_VERSION }}.tar.gz tag: v${{ github.event.inputs.release_version }} - name: Create GitHub pre-release (Linux) @@ -218,7 +227,7 @@ jobs: overwrite: true prerelease: true repo_token: ${{ secrets.GITHUB_TOKEN }} - file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux.tar.gz + file: core/electron/aspect-model-editor-v${{ github.event.inputs.release_version }}-linux-glibc-V${{ env.GLIBC_VERSION }}.tar.gz tag: v${{ github.event.inputs.release_version }} - name: Create GitHub release (Windows)