-
-
Notifications
You must be signed in to change notification settings - Fork 19
61 lines (60 loc) · 1.93 KB
/
pull_request-gradle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Pull Requests
on:
pull_request:
paths-ignore:
- '**/*.md'
branches:
- main
jobs:
build:
name: Create Pull Request Build for ${{ matrix.os_prefix }} (${{ matrix.arch }})
runs-on: ${{ matrix.os }}
permissions:
pull-requests: write
contents: read
strategy:
fail-fast: false
matrix:
include:
- os: [self-hosted, linux, ARM64]
os_prefix: linux
arch: aarch64
- os: ubuntu-latest
os_prefix: linux
arch: x64
- os: windows-latest
os_prefix: windows
arch: x64
- os: macos-latest
os_prefix: macos
arch: x64
- os: macos-latest
os_prefix: macos
arch: aarch64
steps:
- 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: 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.sha}}${{ matrix.os_prefix }}-${{ matrix.arch }}
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
retention-days: 5