Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions .github/workflows/app-build-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,13 +112,6 @@ jobs:
sudo apt -y update
sudo apt -y install --no-install-recommends socat xauth

# Free up disk space
docker system prune -a -f
sudo rm -rf $ANDROID_HOME/ndk /opt/hostedtoolcache/CodeQL \
/usr/local/lib/node_modules /usr/local/share/chromium \
/usr/local/share/powershell
df -h

- name: Prepare macOS
# GitHub recommends explicitly selecting the desired Xcode version:
# https://github.com/actions/runner-images/issues/12541#issuecomment-3083850140
Expand Down Expand Up @@ -206,6 +199,9 @@ jobs:
briefcase run macOS app
briefcase package macOS app --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Build macOS Xcode Project
if: >
startsWith(inputs.runner-os, 'macOS')
Expand All @@ -222,6 +218,9 @@ jobs:
briefcase run macOS Xcode
briefcase package macOS Xcode --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Build Windows App
if: >
startsWith(inputs.runner-os, 'Windows')
Expand All @@ -235,6 +234,9 @@ jobs:
briefcase run windows app
briefcase package windows app --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Build Windows Visual Studio Project
if: >
startsWith(inputs.runner-os, 'Windows')
Expand All @@ -248,6 +250,9 @@ jobs:
briefcase run windows VisualStudio
briefcase package windows VisualStudio --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Build Linux System Project (Ubuntu, local)
if: >
startsWith(inputs.runner-os, 'ubuntu')
Expand All @@ -272,6 +277,9 @@ jobs:

bash -c "sudo apt -y install --dry-run ./dist/*_0.0.1-1~ubuntu-*_$(dpkg --print-architecture).deb"

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Log in to GitHub Container Registry
if: >
startsWith(inputs.runner-os, 'ubuntu')
Expand Down Expand Up @@ -483,6 +491,10 @@ jobs:
xvfb-run briefcase run linux flatpak
briefcase package linux flatpak --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist
flatpak uninstall --all --delete-data --assumeyes

- name: Build Android App
# Android SDK is not compatible with ARM
if: >
Expand Down Expand Up @@ -516,6 +528,9 @@ jobs:

briefcase package android gradle --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Build iOS App
if: >
startsWith(inputs.runner-os, 'macOS')
Expand All @@ -530,6 +545,9 @@ jobs:
briefcase run iOS xcode -d "${{ inputs.ios-simulator }}"
briefcase package iOS xcode --adhoc-sign

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Build Web App
if: >
contains(fromJSON('["", "web"]'), inputs.target-platform)
Expand All @@ -542,6 +560,9 @@ jobs:
briefcase build web static
briefcase package web static

# Clean up built artefacts to preserve disk space
rm -rf build dist

- name: Upload Failure Logs
uses: actions/[email protected]
if: failure()
Expand Down