Update release.yml with android release #77
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a .NET project | |
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net | |
name: Build Desktop & Android | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Restore ImmichFrame.Desktop dependencies | |
run: dotnet restore | |
working-directory: ImmichFrame.Desktop | |
- name: Build ImmichFrame.Desktop | |
run: dotnet build --no-restore | |
working-directory: ImmichFrame.Desktop | |
- name: Test ImmichFrame.Desktop | |
run: dotnet test --no-build --verbosity normal | |
working-directory: ImmichFrame.Desktop | |
- name: Set Up Android tools | |
run: | | |
${ANDROID_SDK_ROOT}/cmdline-tools/latest/bin/sdkmanager \ | |
--sdk_root=$ANDROID_SDK_ROOT \ | |
"platform-tools" | |
- name: Restore workload ImmichFrame.Android | |
run: dotnet workload restore | |
working-directory: ImmichFrame.Android | |
- name: Restore ImmichFrame.Android dependencies | |
run: dotnet restore | |
working-directory: ImmichFrame.Android | |
- name: Build ImmichFrame.Android | |
run: dotnet build --no-restore | |
working-directory: ImmichFrame.Android | |
- name: Test ImmichFrame.Android | |
run: dotnet test --no-build --verbosity normal | |
working-directory: ImmichFrame.Android |