Skip to content

Revisiting the GitHub Actions Release system (.flatpak + .deb) #1204

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

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
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
18 changes: 18 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Setup Processing"
description: "Setup the required contents for Processing to build"
inputs:
arch:
description: 'Architecture of the JDK to download'
required: false
runs:
using: "composite"
steps:
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: ${{ inputs.arch }}

- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
80 changes: 0 additions & 80 deletions .github/workflows/build-gradle.yml

This file was deleted.

75 changes: 34 additions & 41 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,77 +1,70 @@
name: Branch Builds (Legacy)
on:
name: Branch Builds
on:
push:
paths-ignore:
- '**/*.md'
- '.all-contributorsrc'
pull_request:
paths-ignore:
- '**/*.md'
branches:
- main


jobs:
test:
runs-on: ubuntu-latest
name: Run Tests
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'
architecture: x64
- name: Build
run: >
cd build;
ant -noinput build test;
build:
name: Create Pre-release for ${{ matrix.os_prefix }} (${{ matrix.arch }})
needs: test

- name: Setup Processing
uses: ./.github/actions/setup

- name: Build with Gradle
run: ./gradlew test
build:
name: (${{ matrix.os_prefix }}/${{ matrix.arch }}) Create Processing Build
runs-on: ${{ matrix.os }}
permissions:
contents: write
needs: test
strategy:
fail-fast: false
matrix:
include:
# compiling for arm32 needs a self-hosted runner on Raspi OS (32-bit)
- os: [self-hosted, linux, ARM]
- os: ubuntu-24.04-arm
os_prefix: linux
arch: arm
arch: aarch64
binary: deb/processing*.deb
- os: ubuntu-latest
os_prefix: linux
arch: x64
binary: deb/processing*.deb
- 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
- os: macos-latest
os_prefix: linux
arch: aarch64
binary: dmg/Processing-*.dmg
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Checkout Examples Repository
uses: actions/checkout@v4
with:
repository: processing/processing-examples
path: processing-examples
- name: Install Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: ${{ matrix.arch }}
- name: Setup Ant
uses: cedx/setup-ant@v3
- name: Build Release
run: ant -noinput -buildfile build/build.xml ${{ matrix.os_prefix }}-dist -Dversion="${{ github.sha }}"

- name: Setup Processing
uses: ./.github/actions/setup

- name: Package Processing with Gradle
run: ./gradlew packageDistributionForCurrentOS

- name: Add artifact
uses: actions/upload-artifact@v4
with:
name: processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-ant
path: ./build/${{ matrix.os_prefix }}/processing-${{github.sha}}-${{ matrix.os_prefix}}-*
name: processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-br_${{ github.ref_name }}
retention-days: 1
path: app/build/compose/binaries/main/${{ matrix.binary }}
29 changes: 0 additions & 29 deletions .github/workflows/lock.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,11 @@ jobs:
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
fetch-depth: 0

- name: Setup Processing
uses: ./.github/actions/setup

- name: Build with Gradle
run: ./gradlew test
Expand All @@ -34,11 +32,11 @@ jobs:
- os: ubuntu-24.04-arm
os_prefix: linux
arch: aarch64
binary: processing*.snap
binary: deb/processing*.deb
- os: ubuntu-latest
os_prefix: linux
arch: x64
binary: processing*.snap
binary: deb/processing*.deb
- os: windows-latest
os_prefix: windows
arch: x64
Expand All @@ -52,23 +50,11 @@ jobs:
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
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
architecture: ${{ matrix.arch }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4

- name: Setup Processing
uses: ./.github/actions/setup

- name: Build with Gradle
run: ./gradlew packageDistributionForCurrentOS
Expand Down
63 changes: 0 additions & 63 deletions .github/workflows/pull_request.yml

This file was deleted.

Loading
Loading