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

Gradle Distribution Setup #968

Merged
merged 47 commits into from
Mar 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
30dddff
macOS distribution
Stefterv Mar 9, 2025
24cd7f0
Switch build to github hosted linux
Stefterv Mar 9, 2025
64a3b83
macOS Distribution fixes
Stefterv Mar 9, 2025
34b90c7
Windows Packaging
Stefterv Mar 9, 2025
5366ac9
Windows Distribution Fixes
Stefterv Mar 9, 2025
f1cd662
Fixed missing dependencie
Stefterv Mar 9, 2025
9d257de
Only on Linux
Stefterv Mar 10, 2025
aa4b0e3
Linux Snap Fixes
Stefterv Mar 10, 2025
cae9671
Action cleanup
Stefterv Mar 10, 2025
ea6aced
Add portables
Stefterv Mar 10, 2025
02d0775
Add static reference
Stefterv Mar 10, 2025
006e1b1
Portables Fix
Stefterv Mar 10, 2025
60b5d85
General fixes
Stefterv Mar 10, 2025
448ee16
Merge branch 'processing:main' into main
Stefterv Mar 11, 2025
0674c24
Workflow improvements
Stefterv Mar 12, 2025
659b4e2
macOS signing & notarisation
Stefterv Mar 12, 2025
678e1a9
macOS: Move notarization inside gradle packaging
Stefterv Mar 12, 2025
dfc1e5a
Sign bundled resources/executables
Stefterv Mar 12, 2025
ba97f23
Snapcraft Distribution
Stefterv Mar 12, 2025
742761d
Fixed signing bug
Stefterv Mar 12, 2025
405b033
Distribution Bugfixes
Stefterv Mar 12, 2025
1622bc7
macOS Signing fixes and Linux version fix
Stefterv Mar 12, 2025
78b45ea
Fixed Snap Store upload & macOS Binary signing
Stefterv Mar 12, 2025
4bce2d3
Typo
Stefterv Mar 12, 2025
55d616b
macOS Signing bugfix
Stefterv Mar 12, 2025
10d878e
App Store upload & Snap fix
Stefterv Mar 12, 2025
4d80ce1
Snap fixes
Stefterv Mar 12, 2025
be6db83
Mac App Store certs
Stefterv Mar 12, 2025
4985206
Revert "Mac App Store certs"
Stefterv Mar 12, 2025
2eefc39
General builds bugfix
Stefterv Mar 12, 2025
b8595ce
Release script cleanup
Stefterv Mar 12, 2025
a721281
Snap Fixes
Stefterv Mar 13, 2025
c7bb58d
Update build.gradle.kts
Stefterv Mar 13, 2025
d6ee9bf
Repo Icon & Raspberry PI category
Stefterv Mar 13, 2025
8b7ae97
Fixed Android mode
Stefterv Mar 13, 2025
c449e95
Fixed missing Module for Android mode
Stefterv Mar 13, 2025
d0b57f3
Revised contributions source & Extended Logging
Stefterv Mar 13, 2025
bb324b1
Snap: Auto Release to Beta
Stefterv Mar 13, 2025
9912830
Changed dmg volume icon
Stefterv Mar 14, 2025
c1ea8fd
Added branded background and banner for the Windows installer
SableRaf Mar 14, 2025
525f474
Updated macOS Volume graphics
Stefterv Mar 14, 2025
c4ea8d5
Merge branch 'main' of https://github.com/Stefterv/processing4
Stefterv Mar 14, 2025
7ab7fb9
Windows: Added processing license to installer
Stefterv Mar 14, 2025
8916e95
Fix for transparent border
SableRaf Mar 14, 2025
3c47f24
Added comment about ~ use and Prepocessor group change
Stefterv Mar 14, 2025
05c8ba3
Merge branch 'main' of https://github.com/Stefterv/processing4
Stefterv Mar 14, 2025
c5c3533
Merge branch 'main' into main
Stefterv Mar 14, 2025
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
51 changes: 36 additions & 15 deletions .github/workflows/build-gradle.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,63 @@
name: Pre-releases with Gradle
name: Branch Builds
on:
push:
paths-ignore:
- '**/*.md'
- '.all-contributorsrc'

jobs:
test:
runs-on: ubuntu-latest
name: Test Processing
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
run: ./gradlew test
build:
name: Create Pre-release for ${{ matrix.os_prefix }} (${{ matrix.arch }})
name: (${{ matrix.os_prefix }}/${{ matrix.arch }}) Create Processing Build
runs-on: ${{ matrix.os }}
permissions:
contents: write
needs: test
strategy:
fail-fast: false
matrix:
include:
- os: [self-hosted, linux, ARM64]
- os: ubuntu-24.04-arm
os_prefix: linux
arch: aarch64
binary: processing*.snap
- os: ubuntu-latest
os_prefix: linux
arch: x64
binary: processing*.snap
- os: windows-latest
os_prefix: windows
arch: x64
binary: msi/Processing-*.msi
- os: macos-latest
os_prefix: macos
arch: x64
binary: dmg/Processing-*.dmg
- os: macos-latest
os_prefix: macos
arch: aarch64
binary: dmg/Processing-*.dmg
steps:
- name: Install Snapcraft
if: runner.os == 'Linux'
uses: samuelmeuli/action-snapcraft@v3
- name: Install LXD
if: runner.os == 'Linux'
uses: canonical/setup-lxd@main

- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java
Expand All @@ -41,19 +68,13 @@ jobs:
architecture: ${{ matrix.arch }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
run: ./gradlew packageDistributionForCurrentOS
- name: Add instructions
if: ${{ matrix.os_prefix == 'macos' }}
run: |
echo "run 'xattr -d com.apple.quarantine Processing-${version}.dmg' to remove the quarantine flag" > ./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt

- name: Add artifact
uses: actions/upload-artifact@v4
with:
name: processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
path: |
./app/build/compose/binaries/main/dmg/Processing-*.dmg
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
./app/build/compose/binaries/main/msi/Processing-*.msi
./app/build/compose/binaries/main/deb/processing*.deb
name: processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-br_${{ github.ref_name }}
retention-days: 1
path: app/build/compose/binaries/main/${{ matrix.binary }}
37 changes: 0 additions & 37 deletions .github/workflows/maven.yml

This file was deleted.

50 changes: 35 additions & 15 deletions .github/workflows/pull_request-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,32 +7,58 @@ on:
- main

jobs:
build:
name: Create Pull Request Build for ${{ matrix.os_prefix }} (${{ matrix.arch }})
test:
runs-on: ubuntu-latest
name: Test Processing
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
run: ./gradlew test
build:
name: (${{ matrix.os_prefix }}/${{ matrix.arch }}) Create Processing Build
runs-on: ${{ matrix.os }}
permissions:
pull-requests: write
contents: read
needs: test
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04-arm
os_prefix: linux
arch: aarch64
binary: processing*.snap
- os: ubuntu-latest
os_prefix: linux
arch: x64
binary: processing*.snap
- os: windows-latest
os_prefix: windows
arch: x64
binary: msi/Processing-*.msi
- os: macos-latest
os_prefix: macos
arch: x64
binary: dmg/Processing-*.dmg
- os: macos-latest
os_prefix: macos
arch: aarch64
binary: dmg/Processing-*.dmg
steps:
- name: Install Snapcraft
if: runner.os == 'Linux'
uses: samuelmeuli/action-snapcraft@v3
- name: Install LXD
if: runner.os == 'Linux'
uses: canonical/setup-lxd@main

- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Java
Expand All @@ -43,19 +69,13 @@ jobs:
architecture: ${{ matrix.arch }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Build with Gradle
run: ./gradlew packageDistributionForCurrentOS
- name: Add instructions
if: ${{ matrix.os_prefix == 'macos' }}
run: |
echo "run 'xattr -d com.apple.quarantine Processing-${version}.dmg' to remove the quarantine flag" > ./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt

- name: Add artifact
uses: actions/upload-artifact@v4
with:
name: processing-pr${{ github.event.pull_request.number }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
path: |
./app/build/compose/binaries/main/dmg/Processing-*.dmg
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
./app/build/compose/binaries/main/msi/Processing-*.msi
./app/build/compose/binaries/main/deb/processing*.deb
name: processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-pr_${{ github.event.pull_request.number }}
retention-days: 5
path: app/build/compose/binaries/main/${{ matrix.binary }}
Loading
Loading