Created
January 30, 2025 05:45
-
-
Save dunossauro/a7168ec4b4a3e3510a7b094f0110ea70 to your computer and use it in GitHub Desktop.
Beeware Briefcafe multiplatform build
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push | |
concurrency: | |
group: ${{ github.workflow}}-${{ github.ref }} | |
cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
env: | |
FORCE_COLOR: "1" | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
ci: | |
name: Test and Package | |
runs-on: ${{ matrix.runs-on }} | |
strategy: | |
fail-fast: false | |
matrix: | |
target: [ "Flatpak", "AppImage", "Archlinux", "Ubuntu", "Fedora", "Opensuse", "Windows", "MacOs" ] | |
include: | |
- target: "AppImage" | |
platform: "linux" | |
output-format: "appimage" | |
runs-on: "ubuntu-latest" | |
- target: "Flatpak" | |
platform: "linux" | |
output-format: "flatpak" | |
runs-on: "ubuntu-latest" | |
- target: "Archlinux" | |
platform: "linux" | |
output-format: "system" | |
runs-on: "ubuntu-latest" | |
briefcase-args: "--target archlinux" | |
- target: "Ubuntu" | |
platform: "linux" | |
output-format: "system" | |
runs-on: "ubuntu-latest" | |
briefcase-args: "--target ubuntu:24.04" | |
- target: "Fedora" | |
platform: "linux" | |
output-format: "system" | |
runs-on: "ubuntu-latest" | |
briefcase-args: "--target fedora:40" | |
- target: "Opensuse" | |
platform: "linux" | |
output-format: "system" | |
runs-on: "ubuntu-latest" | |
briefcase-args: "--target opensuse/tumbleweed" | |
- target: "Windows" | |
platform: "windows" | |
output-format: "app" | |
runs-on: "windows-latest" | |
- target: "MacOs" | |
platform: "macos" | |
output-format: "app" | |
runs-on: "macos-latest" | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.12" | |
- name: Install flatpak | |
if: matrix.target == 'Flatpak' | |
run: sudo apt install flatpak flatpak-builder | |
- name: Install Briefcase | |
run: | | |
python -m pip install -U pip setuptools wheel | |
python -m pip install briefcase | |
- name: Build App | |
run: | | |
briefcase build \ | |
${{ matrix.platform || matrix.target }} \ | |
${{ matrix.output-format }} \ | |
--test --no-input --log \ | |
${{ matrix.briefcase-args }} | |
- name: Package App | |
run: | | |
briefcase package \ | |
${{ matrix.platform || matrix.target }} \ | |
${{ matrix.output-format }} \ | |
--update --adhoc-sign --no-input --log \ | |
${{ matrix.briefcase-args }} | |
- name: Upload App | |
uses: actions/upload-artifact@v4 | |
with: | |
name: exemplo-${{ matrix.target }} | |
path: dist | |
if-no-files-found: error | |
- name: Upload Log | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Log-Failure-${{ matrix.target }} | |
path: logs/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment