Skip to content

Commit

Permalink
Update macOS build scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruben2776 committed Dec 25, 2024
1 parent 5f5855b commit b164f93
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 55 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/BuildMacOS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,30 +28,34 @@ jobs:
id: get-version
run: pwsh -File "${{ github.workspace }}/Build/Get-VersionInfo.ps1"

# Step 4 (x64): Publish arm64 version
# Step 4: Build arm64 version
- name: Build arm64 version
run: |
pwsh -File "${{ github.workspace }}\Build\Build Avalonia.MacOS.ps1" -Platform "arm64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-osx-arm64"
pwsh -File "${{ github.workspace }}/Build/Build\ Avalonia.MacOS\ arm64.ps1" `
-Platform "arm64" `
-outputPath "${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-osx-arm64"
shell: pwsh

# Step 5: Upload arm64 artifact
- name: Upload arm64 artifact
uses: actions/upload-artifact@v4
with:
name: PicView-v${{steps.get-version.outputs.version}}-macOS-arm64
path: ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-macOS-arm64/
path: ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-osx-arm64/
retention-days: 14

# Step 6: Build x64 version by modifying the platform parameter
# Step 6: Build x64 version
- name: Build x64 version
run: |
pwsh -File "${{ github.workspace }}\Build\Build Avalonia.MacOS.ps1" -Platform "x64" -outputPath "${{ github.workspace }}\Build\PicView-v${{steps.get-version.outputs.version}}-osx-x64"
pwsh -File "${{ github.workspace }}/Build/Build\ Avalonia.MacOS\ arm64.ps1" `
-Platform "x64" `
-outputPath "${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-osx-x64"
shell: pwsh

# Step 7: Upload x64 artifact
- name: Upload x64 artifact
uses: actions/upload-artifact@v4
with:
name: PicView-v${{steps.get-version.outputs.version}}-macOS-x64
path: ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-macOS-x64/
retention-days: 14
path: ${{ github.workspace }}/Build/PicView-v${{steps.get-version.outputs.version}}-osx-x64/
retention-days: 14
48 changes: 0 additions & 48 deletions Build/Build Avalonia.MacOS arm64.ps1

This file was deleted.

0 comments on commit b164f93

Please sign in to comment.