diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cf8ad361d..6c28892ddd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,6 +27,9 @@ on: macos: default: true type: boolean + verify_macos: + default: true + type: boolean windows: default: true type: boolean @@ -69,6 +72,10 @@ on: description: yt-dlp_macos, yt-dlp_macos.zip default: true type: boolean + verify_macos: + description: Verify the macOS build on arm64 (if UPDATE_TO_VERIFICATION is set) + default: true + type: boolean windows: description: yt-dlp.exe, yt-dlp_win.zip, yt-dlp_x86.exe, yt-dlp_win_x86.zip, yt-dlp_arm64.exe, yt-dlp_win_arm64.zip default: true @@ -304,7 +311,7 @@ jobs: if: inputs.macos permissions: contents: read - runs-on: macos-14 + runs-on: macos-15-intel env: CHANNEL: ${{ inputs.channel }} ORIGIN: ${{ needs.process.outputs.origin }} @@ -365,7 +372,7 @@ jobs: (cd ./dist/yt-dlp_macos && zip -r ../yt-dlp_macos.zip .) python3 -m bundle.pyinstaller --target-architecture universal2 - - name: Verify --update-to + - name: Verify --update-to (intel) if: vars.UPDATE_TO_VERIFICATION run: | chmod +x ./dist/yt-dlp_macos @@ -385,12 +392,12 @@ jobs: compression-level: 0 macos_verify: - name: Verify macos x86_64 + name: Verify macos arm64 needs: [macos] - if: inputs.macos && vars.UPDATE_TO_VERIFICATION + if: inputs.verify_macos && vars.UPDATE_TO_VERIFICATION permissions: contents: read - runs-on: macos-15-intel + runs-on: macos-latest env: UPDATE_TO: yt-dlp/yt-dlp@2025.09.05 @@ -401,7 +408,7 @@ jobs: path: dist pattern: build-bin-macos - - name: Verify --update-to on x86_64 architecture + - name: Verify --update-to (arm64) run: | chmod +x ./dist/yt-dlp_macos cp ./dist/yt-dlp_macos ./dist/yt-dlp_macos_downgraded diff --git a/.github/workflows/release-nightly.yml b/.github/workflows/release-nightly.yml index 24292f0b39..ec2f2f15c6 100644 --- a/.github/workflows/release-nightly.yml +++ b/.github/workflows/release-nightly.yml @@ -82,6 +82,7 @@ jobs: prerelease: true source: ${{ (github.repository != 'yt-dlp/yt-dlp' && vars.NIGHTLY_ARCHIVE_REPO) || 'nightly' }} target: 'nightly' + verify_macos: ${{ github.event_name != 'schedule' }} secrets: ARCHIVE_REPO_TOKEN: ${{ secrets.ARCHIVE_REPO_TOKEN }} GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7f8ebd759b..3eb13d9e88 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,6 +18,10 @@ on: required: false default: false type: boolean + verify_macos: + required: false + default: false + type: boolean prerelease: required: false default: true @@ -58,6 +62,10 @@ on: description: Include linux_armv7l default: true type: boolean + verify_macos: + description: Verify the macOS build on arm64 + default: true + type: boolean prerelease: description: Pre-release default: false @@ -161,6 +169,7 @@ jobs: channel: ${{ needs.prepare.outputs.channel }} origin: ${{ needs.prepare.outputs.target_repo }} linux_armv7l: ${{ inputs.linux_armv7l }} + verify_macos: ${{ inputs.verify_macos }} secrets: GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}