* Update build workflow to add back osx-arm64

This commit is contained in:
PikachuEXE 2024-11-13 09:07:51 +08:00
parent 276e35da60
commit 4e2639d2f7
No known key found for this signature in database

View File

@ -20,9 +20,7 @@ jobs:
- win-x64 - win-x64
- win-arm64 - win-arm64
- osx-x64 - osx-x64
# `osx-arm64` disabled due to "macOS gatekeeper" - osx-arm64
# See details in https://github.com/FreeTubeApp/FreeTube/pull/2113
# - osx-arm64
include: include:
- runtime: linux-x64 - runtime: linux-x64
os: ubuntu-latest os: ubuntu-latest
@ -36,8 +34,8 @@ jobs:
- runtime: osx-x64 - runtime: osx-x64
os: macOS-latest os: macOS-latest
# - runtime: osx-arm64 - runtime: osx-arm64
# os: macOS-latest os: macOS-latest
- runtime: win-x64 - runtime: win-x64
os: windows-latest os: windows-latest
@ -300,12 +298,12 @@ jobs:
name: freetube-${{ steps.versionNumber.outputs.result }}-mac-x64.dmg name: freetube-${{ steps.versionNumber.outputs.result }}-mac-x64.dmg
path: build/freetube-${{ steps.versionNumber.outputs.result }}.dmg path: build/freetube-${{ steps.versionNumber.outputs.result }}.dmg
# - name: Upload Mac arm64 .dmg Artifact - name: Upload Mac arm64 .dmg Artifact
# uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
# if: startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64') if: startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64')
# with: with:
# name: freetube-${{ steps.versionNumber.outputs.result }}-mac-arm64.dmg name: freetube-${{ steps.versionNumber.outputs.result }}-mac-arm64.dmg
# path: build/freetube-${{ steps.versionNumber.outputs.result }}-arm64.dmg path: build/freetube-${{ steps.versionNumber.outputs.result }}-arm64.dmg
- name: Upload Mac x64 .zip Artifact - name: Upload Mac x64 .zip Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
@ -321,9 +319,16 @@ jobs:
name: freetube-${{ steps.versionNumber.outputs.result }}-mac-x64.7z name: freetube-${{ steps.versionNumber.outputs.result }}-mac-x64.7z
path: build/freetube-${{ steps.versionNumber.outputs.result }}-mac.7z path: build/freetube-${{ steps.versionNumber.outputs.result }}-mac.7z
# - name: Upload Mac arm64 .zip Artifact - name: Upload Mac arm64 .zip Artifact
# uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4
# if: startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64') if: startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64')
# with: with:
# name: freetube-${{ steps.versionNumber.outputs.result }}-mac-arm64.zip name: freetube-${{ steps.versionNumber.outputs.result }}-mac-arm64.zip
# path: build/freetube-${{ steps.versionNumber.outputs.result }}-arm64-mac.zip path: build/freetube-${{ steps.versionNumber.outputs.result }}-arm64-mac.zip
- name: Upload Mac arm64 .7z Artifact
uses: actions/upload-artifact@v4
if: startsWith(matrix.os, 'macos') && startsWith(matrix.runtime, 'osx-arm64')
with:
name: freetube-${{ steps.versionNumber.outputs.result }}-mac-arm64.7z
path: build/freetube-${{ steps.versionNumber.outputs.result }}-arm64-mac.7z