-
-
Notifications
You must be signed in to change notification settings - Fork 155
105 lines (93 loc) · 3.21 KB
/
build.yml
File metadata and controls
105 lines (93 loc) · 3.21 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Branch Builds
on:
push:
paths-ignore:
- '**/*.md'
- '.all-contributorsrc'
pull_request:
paths-ignore:
- '**/*.md'
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Test Processing
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Processing
uses: ./.github/actions/setup
- name: Build with Gradle
run: ./gradlew test
# - name: Add comment with binaries
# if: ${{ github.event_name == 'pull_request' }}
# uses: marocchino/sticky-pull-request-comment@v2
# with:
# header: artifacts
# message: |
# Tests completed successfully. Build artifacts for this pull request will appear below once ready.
#
# ### Build Artifacts
# | Platform | Link |
# |:--|------------------------|
build:
name: (${{ matrix.os_prefix }}/${{ matrix.arch }}) Create Processing Build
runs-on: ${{ matrix.os }}
needs: test
permissions:
pull-requests: write
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04-arm
os_prefix: linux
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
binary: dmg/Processing-*.dmg
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Processing
uses: ./.github/actions/setup
- name: Package Processing with Gradle
run: ./gradlew packageDistributionForCurrentOS
- name: Add artifact
uses: actions/upload-artifact@v4
if: ${{ github.event_name != 'pull_request' }}
with:
name: processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-br_${{ github.ref_name }}
retention-days: 1
path: app/build/compose/binaries/main/${{ matrix.binary }}
- name: Add artifact for PR
if: ${{ github.event_name == 'pull_request' }}
id: upload-artifact
uses: actions/upload-artifact@v4
with:
name: processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-pr_${{ github.event.pull_request.number }}
retention-days: 5
path: app/build/compose/binaries/main/${{ matrix.binary }}
# - name: Add comment with binaries
# if: ${{ github.event_name == 'pull_request' }}
# uses: marocchino/sticky-pull-request-comment@v2
# with:
# append: true
# header: artifacts
# message: |
# |(${{ matrix.os_prefix }}/${{ matrix.arch }})|[Download processing-${{ matrix.os_prefix }}-${{ matrix.arch }}-pr_${{ github.event.pull_request.number }}](${{ steps.upload-artifact.outputs.artifact-url }})|