-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from rmartin16/ci
Upgrade `upload-artifact` action to v4
- Loading branch information
Showing
1 changed file
with
17 additions
and
12 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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 | ||
|
||
|
@@ -109,7 +114,7 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
- name: Install Dependencies | ||
run: ${{ matrix.pre-command }} | ||
|
||
- name: Install Briefcase | ||
|
@@ -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 }} | ||
|