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
|
||||
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
|
||||
- name: Setup environment
|
||||
run: |
|
||||
@ -34,6 +41,22 @@ jobs:
|
||||
echo "Environment setup complete"
|
||||
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
|
||||
- name: Build for macOS
|
||||
run: |
|
||||
@ -144,7 +167,27 @@ jobs:
|
||||
echo "Found entitlements file: ${{ env.ENTITLEMENTS_FILE }}"
|
||||
fi
|
||||
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
|
||||
- name: Sign and Notarize macOS App
|
||||
uses: ./.gitea/actions/macos-notarize
|
||||
@ -162,6 +205,15 @@ jobs:
|
||||
bundle-id: ${{ env.BUNDLE_ID }}
|
||||
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
|
||||
- name: Upload Mac Distribution DMG
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -169,7 +221,7 @@ jobs:
|
||||
with:
|
||||
name: LuckyWorld-Mac-Distribution
|
||||
path: ${{ steps.sign-and-notarize.outputs.package-path }}
|
||||
retention-days: 30
|
||||
retention-days: 30
|
||||
|
||||
# Report results
|
||||
- name: Report Results
|
||||
|
Loading…
x
Reference in New Issue
Block a user