CI mac: added arch string

to identify if the build is arm64 or x86_64
This commit is contained in:
Martin Pulec
2024-02-09 09:57:19 +01:00
parent e7c2379fef
commit dbe6fff795
2 changed files with 7 additions and 2 deletions

View File

@@ -14,6 +14,11 @@ else
TAG=$VERSION
fi
# include platform on mac in version string
if [ "$(uname -s)" = Darwin ]; then
VERSION="$(uname -m)-$VERSION"
fi
if [ -z "${CHANNEL-}" ]; then
CHANNEL=$VERSION
fi

View File

@@ -225,12 +225,12 @@ jobs:
if: (github.repository == 'CESNET/UltraGrid' && github.ref == 'refs/heads/master') || startsWith(github.ref, 'refs/tags/')
run: |
brew install jq
.github/scripts/replace-asset.sh $TAG UltraGrid-$VERSION.dmg application/x-apple-diskimage macOS%20build
.github/scripts/replace-asset.sh $TAG UltraGrid-$VERSION.dmg application/x-apple-diskimage macOS%20$(uname -m)%20build
- name: Upload Build
if: steps.upload-release.conclusion == 'skipped'
uses: actions/upload-artifact@main
with:
name: UltraGrid-macOS
name: UltraGrid-${{ env.VERSION }}-macOS
path: UltraGrid-${{ env.VERSION }}.dmg
Windows: