fix(actions): enhance macOS notarization workflow by adding debug logging, build cache management, and improved artifact handling
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 2s
Some checks failed
Test macOS Build Action / test-macos-build (push) Failing after 2s
This commit is contained in:
parent
fba1af513c
commit
1c7e12e279
File diff suppressed because it is too large
Load Diff
@ -15,6 +15,13 @@ jobs:
|
|||||||
lfs: true
|
lfs: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
|
# Enable debug logging
|
||||||
|
- name: Enable Debug Logging
|
||||||
|
run: |
|
||||||
|
echo "ACTIONS_RUNNER_DEBUG=true" >> $GITHUB_ENV
|
||||||
|
echo "ACTIONS_STEP_DEBUG=true" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
|
||||||
# Setup environment for build
|
# Setup environment for build
|
||||||
- name: Setup environment
|
- name: Setup environment
|
||||||
run: |
|
run: |
|
||||||
@ -34,6 +41,22 @@ jobs:
|
|||||||
echo "Environment setup complete"
|
echo "Environment setup complete"
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
# Restore cache for build dependencies
|
||||||
|
- name: Restore Build Cache
|
||||||
|
id: build-cache
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
DerivedDataCache
|
||||||
|
Intermediate
|
||||||
|
Saved/Autosaves
|
||||||
|
Saved/Config
|
||||||
|
.unreal
|
||||||
|
key: ${{ runner.os }}-macbuild-${{ hashFiles('**/*.uproject') }}-${{ hashFiles('Config/**') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-macbuild-${{ hashFiles('**/*.uproject') }}-
|
||||||
|
${{ runner.os }}-macbuild-
|
||||||
|
|
||||||
# Build for macOS - use your own build script
|
# Build for macOS - use your own build script
|
||||||
- name: Build for macOS
|
- name: Build for macOS
|
||||||
run: |
|
run: |
|
||||||
@ -144,7 +167,27 @@ jobs:
|
|||||||
echo "Found entitlements file: ${{ env.ENTITLEMENTS_FILE }}"
|
echo "Found entitlements file: ${{ env.ENTITLEMENTS_FILE }}"
|
||||||
fi
|
fi
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
|
# Save cache for next workflow run
|
||||||
|
- name: Save Build Cache
|
||||||
|
if: always()
|
||||||
|
uses: actions/cache/save@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
DerivedDataCache
|
||||||
|
Intermediate
|
||||||
|
Saved/Autosaves
|
||||||
|
Saved/Config
|
||||||
|
.unreal
|
||||||
|
key: ${{ steps.build-cache.outputs.cache-primary-key }}
|
||||||
|
|
||||||
|
# Create a debug log file for notarize action
|
||||||
|
- name: Create debug log directory
|
||||||
|
run: |
|
||||||
|
mkdir -p debug_logs
|
||||||
|
echo "DEBUG_LOG_PATH=$(pwd)/debug_logs/notarize_log.txt" >> $GITHUB_ENV
|
||||||
|
shell: bash
|
||||||
|
|
||||||
# Use the macos-notarize action to sign and notarize the app
|
# Use the macos-notarize action to sign and notarize the app
|
||||||
- name: Sign and Notarize macOS App
|
- name: Sign and Notarize macOS App
|
||||||
uses: ./.gitea/actions/macos-notarize
|
uses: ./.gitea/actions/macos-notarize
|
||||||
@ -162,6 +205,15 @@ jobs:
|
|||||||
bundle-id: ${{ env.BUNDLE_ID }}
|
bundle-id: ${{ env.BUNDLE_ID }}
|
||||||
fallback-to-adhoc: 'false'
|
fallback-to-adhoc: 'false'
|
||||||
|
|
||||||
|
# Upload debug logs if available
|
||||||
|
- name: Upload Debug Logs
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: always()
|
||||||
|
with:
|
||||||
|
name: notarize-debug-logs
|
||||||
|
path: debug_logs
|
||||||
|
retention-days: 7
|
||||||
|
|
||||||
# Upload only the DMG file as main distribution artifact
|
# Upload only the DMG file as main distribution artifact
|
||||||
- name: Upload Mac Distribution DMG
|
- name: Upload Mac Distribution DMG
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
@ -169,7 +221,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: LuckyWorld-Mac-Distribution
|
name: LuckyWorld-Mac-Distribution
|
||||||
path: ${{ steps.sign-and-notarize.outputs.package-path }}
|
path: ${{ steps.sign-and-notarize.outputs.package-path }}
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
# Report results
|
# Report results
|
||||||
- name: Report Results
|
- name: Report Results
|
||||||
|
Loading…
x
Reference in New Issue
Block a user