Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 34 additions & 5 deletions .github/workflows/buildrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ permissions:

env:
DOTNET_VERSION: '9.0.x'
DOTNET_MULTILEVEL_LOOKUP: 0
DOTNET_NOLOGO: true

jobs:
# ==========================================
Expand Down Expand Up @@ -85,6 +87,11 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: '🔍 Verify SDK version'
run: |
dotnet --version
dotnet --list-sdks

- name: '📱 Install Android workload'
run: dotnet workload install android maui-android

Expand All @@ -111,6 +118,10 @@ jobs:
echo "$ANDROID_KEYSTORE_BASE64" | base64 -d > tfmaudio.keystore
echo "ANDROID_KEYSTORE_PATH=$(pwd)/tfmaudio.keystore" >> $GITHUB_ENV

- name: '📦 Restore Android dependencies'
run: |
dotnet restore TFMAudioApp/TFMAudioApp.csproj /p:TargetFramework=net9.0-android

- name: '🔨 Build Android APK (Signed)'
if: ${{ env.ANDROID_KEYSTORE_PATH != '' }}
env:
Expand All @@ -122,9 +133,9 @@ jobs:
VERSION_CODE=${{ steps.version.outputs.version_code }}

dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-android \
-p:TargetFrameworks=net9.0-android \
-p:ApplicationDisplayVersion=$VERSION \
-p:ApplicationVersion=$VERSION_CODE \
-p:AndroidKeyStore=true \
Expand All @@ -141,9 +152,9 @@ jobs:

echo "⚠️ Building unsigned APK (no keystore configured)"
dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-android \
-p:TargetFrameworks=net9.0-android \
-p:ApplicationDisplayVersion=$VERSION \
-p:ApplicationVersion=$VERSION_CODE

Expand Down Expand Up @@ -186,6 +197,11 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: '🔍 Verify SDK version'
run: |
dotnet --version
dotnet --list-sdks

- name: '🪟 Install MAUI workload'
run: dotnet workload install maui-windows

Expand All @@ -198,14 +214,18 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: '📦 Restore Windows dependencies'
run: |
dotnet restore TFMAudioApp/TFMAudioApp.csproj /p:TargetFramework=net9.0-windows10.0.19041.0

- name: '🔨 Build Windows App'
run: |
$VERSION = "${{ steps.version.outputs.version }}"

dotnet publish TFMAudioApp/TFMAudioApp.csproj `
--no-restore `
-c Release `
-f net9.0-windows10.0.19041.0 `
-p:TargetFrameworks=net9.0-windows10.0.19041.0 `
-p:ApplicationDisplayVersion=$VERSION `
-p:WindowsPackageType=None `
-p:PublishSingleFile=false `
Expand Down Expand Up @@ -282,6 +302,11 @@ jobs:
with:
dotnet-version: ${{ env.DOTNET_VERSION }}

- name: '🔍 Verify SDK version'
run: |
dotnet --version
dotnet --list-sdks

- name: '🍎 Install MAUI workload'
run: dotnet workload install maui

Expand All @@ -293,15 +318,19 @@ jobs:
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "tag=$TAG" >> $GITHUB_OUTPUT

- name: '📦 Restore macOS dependencies'
run: |
dotnet restore TFMAudioApp/TFMAudioApp.csproj /p:TargetFramework=net9.0-maccatalyst

- name: '🔨 Build macOS App (Intel x64)'
run: |
VERSION=${{ steps.version.outputs.version }}

dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-maccatalyst \
-r maccatalyst-x64 \
-p:TargetFrameworks=net9.0-maccatalyst \
-p:ApplicationDisplayVersion=$VERSION \
-p:CreatePackage=true \
-o bin/macos-x64
Expand All @@ -311,10 +340,10 @@ jobs:
VERSION=${{ steps.version.outputs.version }}

dotnet publish TFMAudioApp/TFMAudioApp.csproj \
--no-restore \
-c Release \
-f net9.0-maccatalyst \
-r maccatalyst-arm64 \
-p:TargetFrameworks=net9.0-maccatalyst \
-p:ApplicationDisplayVersion=$VERSION \
-p:CreatePackage=true \
-o bin/macos-arm64
Expand Down
7 changes: 7 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"sdk": {
"version": "9.0.100",
"rollForward": "latestMinor",
"allowPrerelease": false
}
}
Loading