1- name : Pre-releases with Gradle
1+ name : Branch Builds
22on :
33 push :
44 paths-ignore :
55 - ' **/*.md'
66 - ' .all-contributorsrc'
77
88jobs :
9+ test :
10+ runs-on : ubuntu-latest
11+ name : Test Processing
12+ steps :
13+ - name : Checkout Repository
14+ uses : actions/checkout@v4
15+ - name : Install Java
16+ uses : actions/setup-java@v4
17+ with :
18+ java-version : ' 17'
19+ distribution : ' temurin'
20+ - name : Setup Gradle
21+ uses : gradle/actions/setup-gradle@v4
22+
23+ - name : Build with Gradle
24+ run : ./gradlew test
925 build :
10- name : Create Pre-release for ${{ matrix.os_prefix }} ( ${{ matrix.arch }})
26+ name : ( ${{ matrix.os_prefix }}/ ${{ matrix.arch }}) Create Processing Build
1127 runs-on : ${{ matrix.os }}
12- permissions :
13- contents : write
28+ needs : test
1429 strategy :
1530 fail-fast : false
1631 matrix :
1732 include :
18- - os : [self-hosted, linux, ARM64]
33+ - os : ubuntu-24.04-arm
1934 os_prefix : linux
2035 arch : aarch64
36+ binary : processing*.snap
2137 - os : ubuntu-latest
2238 os_prefix : linux
2339 arch : x64
40+ binary : processing*.snap
2441 - os : windows-latest
2542 os_prefix : windows
2643 arch : x64
44+ binary : msi/Processing-*.msi
2745 - os : macos-latest
2846 os_prefix : macos
2947 arch : x64
48+ binary : dmg/Processing-*.dmg
3049 - os : macos-latest
3150 os_prefix : macos
3251 arch : aarch64
52+ binary : dmg/Processing-*.dmg
3353 steps :
54+ - name : Install Snapcraft
55+ if : runner.os == 'Linux'
56+ uses : samuelmeuli/action-snapcraft@v3
57+ - name : Install LXD
58+ if : runner.os == 'Linux'
59+ uses : canonical/setup-lxd@main
60+
3461 - name : Checkout Repository
3562 uses : actions/checkout@v4
3663 - name : Install Java
@@ -41,19 +68,13 @@ jobs:
4168 architecture : ${{ matrix.arch }}
4269 - name : Setup Gradle
4370 uses : gradle/actions/setup-gradle@v4
71+
4472 - name : Build with Gradle
4573 run : ./gradlew packageDistributionForCurrentOS
46- - name : Add instructions
47- if : ${{ matrix.os_prefix == 'macos' }}
48- run : |
49- 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
74+
5075 - name : Add artifact
5176 uses : actions/upload-artifact@v4
5277 with :
53- name : processing-${{ github.ref_name }}-${{github.sha}}-${{ matrix.os_prefix }}-${{ matrix.arch }}-gradle
54- path : |
55- ./app/build/compose/binaries/main/dmg/Processing-*.dmg
56- ./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
57- ./app/build/compose/binaries/main/msi/Processing-*.msi
58- ./app/build/compose/binaries/main/deb/processing*.deb
78+ name : processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-br_${{ github.ref_name }}
5979 retention-days : 1
80+ path : app/build/compose/binaries/main/${{ matrix.binary }}
0 commit comments