Skip to content

Commit

Permalink
Merge pull request #1 from hoangbv15/feature/universal-builds
Browse files Browse the repository at this point in the history
Mac universal builds and github workflow improvements
  • Loading branch information
hoangbv15 authored Apr 29, 2024
2 parents 819bbb1 + 047935b commit 33e8475
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/ci-maui-dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ name: CI Build

on:
push:
branches: [ main ]
branches:
- main
- 'release/**'
- 'feature/**'
- 'backport/**'
paths-ignore:
- '**/*.md'
- '**/*.gitignore'
- '**/*.gitattributes'
pull_request:
branches: [ main ]
release:
types:
- released
workflow_dispatch:

permissions:
Expand Down Expand Up @@ -82,28 +89,19 @@ jobs:
run: dotnet workload install maui --ignore-failed-sources

- name: Build MAUI MacCatalyst
run: dotnet publish src/PristonToolsEU.csproj -f net8.0-maccatalyst -c Release -p:CreatePackage=false -p:RuntimeIdentifierOverride=macatalyst-x64
run: dotnet publish src/PristonToolsEU.csproj -f net8.0-maccatalyst -c Release -p:CreatePackage=false

- name: Create zip
# uses: thedoctor0/[email protected]
# with:
# type: 'zip'
# filename: 'MacOS-x64.zip'
# path: src/bin/Release/net8.0-maccatalyst/*.app
# uses: vimtor/[email protected]
# with:
# files: src/bin/Release/net8.0-maccatalyst/PristonToolsEU.app
# dest: MacOS-x64.zip
run: ditto -c -k --sequesterRsrc --keepParent src/bin/Release/net8.0-maccatalyst/PristonToolsEU.app MacOS-x64.zip
run: ditto -c -k --sequesterRsrc --keepParent src/bin/Release/net8.0-maccatalyst/PristonToolsEU.app macOS-universal.zip

- name: Upload Release Assets
if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
files: MacOS-x64.zip
files: macOS-universal.zip

- name: Upload MacCatalyst Artifact
uses: actions/upload-artifact@v4
with:
name: macos-ci-build
path: MacOS-x64.zip
path: macOS-universal.zip

0 comments on commit 33e8475

Please sign in to comment.