Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade upload-artifact action to v4 #56

Merged
merged 1 commit into from
Jan 5, 2024
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
29 changes: 17 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ on:
- main
workflow_call:

# Cancel active CI runs for a PR before starting another run
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true

defaults:
run:
shell: bash # https://github.com/beeware/briefcase/pull/912
shell: bash

env:
FORCE_COLOR: "1"

jobs:
pre-commit:
Expand Down Expand Up @@ -55,17 +63,17 @@ jobs:
- backend: linux-system
runs-on: ubuntu-latest
python-version: "system"
pre-command: "sudo apt-get update -y && sudo apt-get install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 python3-dev libgirepository1.0-dev libcairo2-dev pkg-config"
pre-command: "sudo apt update -y && sudo apt install -y --no-install-recommends python3-dev python3-pip libcairo2-dev libgirepository1.0-dev gir1.2-gtk-3.0"
briefcase-target: "linux system"

# - backend: linux-appimage
# runs-on: ubuntu-latest
# pre-command: "sudo apt-get update -y && sudo apt-get install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 python3-dev libgirepository1.0-dev libcairo2-dev pkg-config libfuse2"
# pre-command: "sudo apt update -y && sudo apt install -y --no-install-recommends libfuse2 libthai-dev libegl1"
# briefcase-target: "linux appimage"

- backend: linux-flatpak
runs-on: ubuntu-latest
pre-command: "sudo apt-get update -y && sudo apt-get install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0 python3-dev libgirepository1.0-dev libcairo2-dev pkg-config flatpak flatpak-builder"
pre-command: "sudo apt update -y && sudo apt install -y --no-install-recommends flatpak flatpak-builder elfutils"
briefcase-target: "linux flatpak"

- backend: windows-VisualStudio
Expand Down Expand Up @@ -94,12 +102,9 @@ jobs:
- backend: "android"
python-version: "3.12"

# Support packages for Flatpak aren't available for 3.12+ on Linux yet
- backend: "linux-flatpak"
python-version: "3.12"

steps:
- uses: actions/checkout@v4.1.1
- name: Checkout
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

Expand All @@ -109,7 +114,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
- name: Install Dependencies
run: ${{ matrix.pre-command }}

- name: Install Briefcase
Expand All @@ -121,8 +126,8 @@ jobs:
- name: Package
run: briefcase package ${{ matrix.briefcase-target }} --update --adhoc-sign

- name: Upload logs
uses: actions/upload-artifact@v3.1.3
- name: Upload Logs
uses: actions/upload-artifact@v4.0.0
if: failure()
with:
name: build-failure-logs-${{ matrix.backend }}-${{ matrix.python-version }}
Expand Down