Skip to content

Commit

Permalink
Add glibc version into tar gz filename (#83)
Browse files Browse the repository at this point in the history
* Add glibc version into tar gz filename

see #56

* Update tagged_release.yml
  • Loading branch information
michelu89 authored Sep 5, 2023
1 parent bb0cf2d commit 48dd8c0
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/tagged_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit 48dd8c0

Please sign in to comment.