Updated project files #29
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
name: PassXYZ.Vault CI Build (MacOS) | |
on: | |
push: | |
branches: [ 2nd/chapter05 ] | |
paths-ignore: | |
- '**/*.md' | |
- '**/*.gitignore' | |
- '**/*.gitattributes' | |
pull_request: | |
branches: [ 2nd/chapter05 ] | |
workflow_dispatch: | |
permissions: | |
contents: read | |
env: | |
DOTNET_NOLOGO: true # Disable the .NET logo | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true # Disable the .NET first time experience | |
DOTNET_CLI_TELEMETRY_OPTOUT: true # Disable sending .NET CLI telemetry | |
DOTNETVERSION: 8.0.x | |
DOTNETSDK: 'net8.0' | |
PROJECT_NAME: PassXYZ.Vault | |
jobs: | |
# MAUI iOS Build | |
build-ios: | |
runs-on: macos-14 | |
name: iOS Build | |
steps: | |
- name: Setup Xcode | |
run: sudo xcode-select -s /Applications/Xcode_15.1.0.app | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: ${{env.DOTNETVERSION}} | |
- name: Install MAUI workload | |
run: dotnet workload install maui | |
- name: Restore Dependencies | |
run: dotnet restore ${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj | |
- name: Build MAUI iOS | |
run: dotnet build ${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj -c Release -f ${{env.DOTNETSDK}}-ios /p:buildForSimulator=True /p:packageApp=True /p:ArchiveOnBuild=False | |
- name: Upload iOS Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: passxyz-ios-ci-build | |
path: ${{env.PROJECT_NAME}}/bin/Release/${{env.DOTNETSDK}}-ios/iossimulator-x64/**/*.app | |
# MAUI MacCatalyst Build | |
build-mac: | |
runs-on: macos-14 | |
name: MacCatalyst Build | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v2 | |
with: | |
dotnet-version: ${{env.DOTNETVERSION}} | |
- name: Install MAUI workload | |
run: dotnet workload install maui | |
- name: Restore Dependencies | |
run: dotnet restore ${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj | |
- name: Build MAUI MacCatalyst | |
run: dotnet publish ${{env.PROJECT_NAME}}/${{env.PROJECT_NAME}}.csproj -c Release -f ${{env.DOTNETSDK}}-maccatalyst -p:BuildIpa=True | |
- name: Upload MacCatalyst Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: passxyz-macos-ci-build | |
path: ${{env.PROJECT_NAME}}/bin/Release/${{env.DOTNETSDK}}-maccatalyst/maccatalyst-x64/publish/*.pkg |