chore: let persistence pay off after few tries, refresh some messages
This commit is contained in:
4 files changed
+22
-15
No files matched your search
Binary file not shown.
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 19 KiB |
@@ -18,6 +18,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
run: |
|
run: |
|
||||||
|
if [ "${{ github.run_attempt }}" -ge 4 ] || [ "${{ github.run_number }}" -ge 4 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
FOUND=false
|
FOUND=false
|
||||||
PAGE=1
|
PAGE=1
|
||||||
while [ $PAGE -le 50 ]; do
|
while [ $PAGE -le 50 ]; do
|
||||||
@@ -29,9 +33,10 @@ jobs:
|
|||||||
PAGE=$((PAGE + 1))
|
PAGE=$((PAGE + 1))
|
||||||
done
|
done
|
||||||
if [ "$FOUND" = "false" ]; then
|
if [ "$FOUND" = "false" ]; then
|
||||||
echo "Workflow blocked for mysterious reasons. Starring the repo might help." >> $GITHUB_STEP_SUMMARY
|
echo "Workflow blocked for mysterious reasons. :thinking:" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "Head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run." >> $GITHUB_STEP_SUMMARY
|
echo "Star the repo or keep re-running — you'll get through eventually. :wink:" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "Head over to https://github.com/LongQT-sea/macos-iso-builder to drop a star. :star:" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -53,18 +58,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Create macOS image
|
- name: Create macOS image
|
||||||
id: create_image
|
id: create_image
|
||||||
continue-on-error: true
|
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ inputs.image_format }}" == "iso" ]; then
|
if [ "${{ inputs.image_format }}" == "iso" ]; then
|
||||||
sudo bash mkmaciso "${{ inputs.macos_version }}" iso
|
sudo bash mkmaciso "${{ inputs.macos_version }}" iso || exit 1
|
||||||
echo "image_name=$(basename *.iso)" >> $GITHUB_OUTPUT
|
echo "image_name=$(basename *.iso)" >> $GITHUB_OUTPUT
|
||||||
else
|
else
|
||||||
sudo bash mkmaciso "${{ inputs.macos_version }}" dmg
|
sudo bash mkmaciso "${{ inputs.macos_version }}" dmg || exit 1
|
||||||
echo "image_name=$(basename *.dmg.img)" >> $GITHUB_OUTPUT
|
echo "image_name=$(basename *.dmg.img)" >> $GITHUB_OUTPUT
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Upload ISO artifact
|
- name: Upload ISO artifact
|
||||||
if: inputs.image_format == 'iso' && steps.create_image.outcome == 'success'
|
if: inputs.image_format == 'iso'
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.create_image.outputs.image_name }}
|
name: ${{ steps.create_image.outputs.image_name }}
|
||||||
@@ -73,7 +77,7 @@ jobs:
|
|||||||
retention-days: 15
|
retention-days: 15
|
||||||
|
|
||||||
- name: Upload DMG artifact
|
- name: Upload DMG artifact
|
||||||
if: inputs.image_format == 'dmg' && steps.create_image.outcome == 'success'
|
if: inputs.image_format == 'dmg'
|
||||||
uses: actions/upload-artifact@v5
|
uses: actions/upload-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: ${{ steps.create_image.outputs.image_name }}
|
name: ${{ steps.create_image.outputs.image_name }}
|
||||||
@@ -103,6 +107,5 @@ jobs:
|
|||||||
fi
|
fi
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "> [!TIP]" >> $GITHUB_STEP_SUMMARY
|
echo "> [!TIP]" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "> Enable [Cloudflare WARP](https://one.one.one.one/) for faster connection to Azure Blob Storage." >> $GITHUB_STEP_SUMMARY
|
echo "> Enable [Cloudflare WARP](https://one.one.one.one/) for faster download from GitHub artifact." >> $GITHUB_STEP_SUMMARY
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -32,6 +32,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
run: |
|
run: |
|
||||||
|
if [ "${{ github.run_attempt }}" -ge 4 ] || [ "${{ github.run_number }}" -ge 4 ]; then
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
FOUND=false
|
FOUND=false
|
||||||
PAGE=1
|
PAGE=1
|
||||||
while [ $PAGE -le 50 ]; do
|
while [ $PAGE -le 50 ]; do
|
||||||
@@ -43,9 +47,10 @@ jobs:
|
|||||||
PAGE=$((PAGE + 1))
|
PAGE=$((PAGE + 1))
|
||||||
done
|
done
|
||||||
if [ "$FOUND" = "false" ]; then
|
if [ "$FOUND" = "false" ]; then
|
||||||
echo "Workflow blocked for mysterious reasons. Starring the repo might help." >> $GITHUB_STEP_SUMMARY
|
echo "Workflow blocked for mysterious reasons. :thinking:" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "Head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run." >> $GITHUB_STEP_SUMMARY
|
echo "Star the repo or keep re-running — you'll get through eventually. :wink:" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "Head over to https://github.com/LongQT-sea/macos-iso-builder to drop a star. :star:" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -57,8 +57,7 @@ Lion, Mountain Lion, Mavericks, Yosemite, El Capitan, Sierra, High Sierra, Mojav
|
|||||||
* **Image format** – Choose `iso` for virtual machines or `dmg` for bootable USB drives.
|
* **Image format** – Choose `iso` for virtual machines or `dmg` for bootable USB drives.
|
||||||
6. Click the green **"Run workflow"** button to start the build, then wait for the workflow to complete.
|
6. Click the green **"Run workflow"** button to start the build, then wait for the workflow to complete.
|
||||||
> [!Tip]
|
> [!Tip]
|
||||||
> If it fails, head over to https://github.com/LongQT-sea/macos-iso-builder, drop a star, and re-run the workflow.
|
> If the run fails, just re-run the workflow.
|
||||||
> <img src="https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.jpg" width="500">
|
|
||||||
7. Once completed, reload the page and scroll down to the **Artifacts** section. Click the artifact link to start downloading (e.g., `macOS_Sequoia_15.7.4.iso`).
|
7. Once completed, reload the page and scroll down to the **Artifacts** section. Click the artifact link to start downloading (e.g., `macOS_Sequoia_15.7.4.iso`).
|
||||||
8. Unzip the downloaded artifact and you're done.
|
8. Unzip the downloaded artifact and you're done.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user