Skip to content

Commit

Permalink
Merge pull request #56 from rmartin16/ci
Browse files Browse the repository at this point in the history
Upgrade `upload-artifact` action to v4
  • Loading branch information
freakboy3742 authored Jan 5, 2024
2 parents db835ba + 65da1f3 commit 13c64b6
Showing 1 changed file with 17 additions and 12 deletions.
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/[email protected]
- name: Checkout
uses: actions/[email protected]
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

0 comments on commit 13c64b6

Please sign in to comment.