chore: enhance logging, increase timeouts, and refine README

This commit is contained in:
Tieu Long committed 2026-02-01 20:44:31 +07:00
1 parent 7e868989c8
commit 5f151eeff5
4 files changed
+19 -21

No files matched your search

+9 -13
View File
@@ -37,17 +37,21 @@ jobs:
run: |
echo "Runner OS: $(sw_vers -productName) $(sw_vers -productVersion)"
echo "Architecture: $(uname -m)"
echo "Available disk space:"
df -h
echo "Python version:"
python3 --version
echo ""
df -h $(mktemp)
echo ""
echo "RAM: $(top -l 1 | grep PhysMem)"
echo ""
echo "CPU: $(sysctl -n machdep.cpu.brand_string)"
echo ""
echo "Python version: $(python3 --version)"
- name: Download macrecovery.py
id: download_recovery_image
continue-on-error: true
run: |
echo "Downloading macrecovery.py from acidanthera/OpenCorePkg..."
curl -OL "https://raw.githubusercontent.com/acidanthera/OpenCorePkg/master/Utilities/macrecovery/macrecovery.py"
curl --retry 3 --max-time 10 --connect-timeout 3 -OL "https://raw.githubusercontent.com/acidanthera/OpenCorePkg/master/Utilities/macrecovery/macrecovery.py"
- name: Get version info
id: version_info
@@ -94,11 +98,6 @@ jobs:
echo "model=$MODEL" >> $GITHUB_OUTPUT
echo "version_name=$VERSION_NAME" >> $GITHUB_OUTPUT
echo "os_flag=$OS_FLAG" >> $GITHUB_OUTPUT
echo "Board ID: $BOARD_ID"
echo "Model: $MODEL"
echo "Version Name: $VERSION_NAME"
echo "OS Flag: $OS_FLAG"
- name: Download macOS Recovery
run: |
@@ -109,9 +108,6 @@ jobs:
else
script -q /dev/null python3 macrecovery.py -b "${{ steps.version_info.outputs.board_id }}" -m "${{ steps.version_info.outputs.model }}" download
fi
echo "Download completed. Checking files..."
ls -la com.apple.recovery.boot/
- name: Determine recovery image filename
id: recovery_file
+3 -2
View File
@@ -34,7 +34,7 @@ on:
jobs:
build-macos-image:
runs-on: macos-15-intel
timeout-minutes: 70
timeout-minutes: 80
steps:
- name: Checkout repository
@@ -93,7 +93,8 @@ jobs:
if [ "${{ github.event.inputs.image_format }}" == "iso" ]; then
echo "## Successfully built $(basename *.iso)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "This ISO image is intended for creating macOS virtual machines on Proxmox VE, QEMU, VMware, and VirtualBox." >> $GITHUB_STEP_SUMMARY
echo "> [!NOTE]" >> $GITHUB_STEP_SUMMARY
echo "> This ISO image is intended for creating macOS virtual machines on Proxmox VE, QEMU, VMware, and VirtualBox." >> $GITHUB_STEP_SUMMARY
else
echo "## Successfully built $(basename *.dmg.img)" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
+3 -2
View File
@@ -8,7 +8,7 @@ jobs:
refresh-forks:
runs-on: ubuntu-latest
permissions:
contents: write
contents: write # needed to create releases
steps:
- name: Checkout repository
@@ -96,6 +96,7 @@ jobs:
The one thing that could make this mass worse?
If you [⭐ starred this repo](https://github.com/LongQT-sea/macos-iso-builder) and mass spread it around.
![star](https://raw.githubusercontent.com/LongQT-sea/mkmaciso/main/.github/star.png)
Please don't. Apple is already mass upset.
@@ -135,7 +136,7 @@ jobs:
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view forks-list > /dev/null 2>&1; then
if gh release view forks-list; then
gh release delete forks-list -y --cleanup-tag
sleep 10
fi