Skip to content

Commit a9a92e9

Browse files
committed
fixed CI/CD
1 parent 6eb3b14 commit a9a92e9

2 files changed

Lines changed: 59 additions & 1 deletion

File tree

.github/workflows/build-gradle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ jobs:
5959
./app/build/compose/binaries/main/dmg/Processing-*.dmg
6060
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
6161
./app/build/compose/binaries/main/msi/Processing-*.msi
62-
./app/build/compose/binaries/main/deb/processing-*.deb
62+
./app/build/compose/binaries/main/deb/processing*.deb
6363
retention-days: 1
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: Pull Requests
2+
on:
3+
pull_request:
4+
paths-ignore:
5+
- '**/*.md'
6+
branches:
7+
- main
8+
9+
jobs:
10+
build:
11+
name: Create Pull Request Build for ${{ matrix.os_prefix }} (${{ matrix.arch }})
12+
runs-on: ${{ matrix.os }}
13+
permissions:
14+
pull-requests: write
15+
contents: read
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
include:
20+
- os: ubuntu-latest
21+
os_prefix: linux
22+
arch: x64
23+
- os: windows-latest
24+
os_prefix: windows
25+
arch: x64
26+
- os: macos-latest
27+
os_prefix: macos
28+
arch: x64
29+
- os: macos-latest
30+
os_prefix: macos
31+
arch: aarch64
32+
steps:
33+
- name: Checkout Repository
34+
uses: actions/checkout@v4
35+
- name: Install Java
36+
uses: actions/setup-java@v4
37+
with:
38+
java-version: '17'
39+
distribution: 'temurin'
40+
architecture: ${{ matrix.arch }}
41+
- name: Setup Gradle
42+
uses: gradle/actions/setup-gradle@v4
43+
- name: Build with Gradle
44+
run: ./gradlew packageDistributionForCurrentOS
45+
- name: Add instructions
46+
if: ${{ matrix.os_prefix == 'macos' }}
47+
run: |
48+
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
49+
- name: Add artifact
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: processing-${{github.sha}}${{ matrix.os_prefix }}-${{ matrix.arch }}
53+
path: |
54+
./app/build/compose/binaries/main/dmg/Processing-*.dmg
55+
./app/build/compose/binaries/main/dmg/INSTRUCTIONS_FOR_TESTING.txt
56+
./app/build/compose/binaries/main/msi/Processing-*.msi
57+
./app/build/compose/binaries/main/deb/processing*.deb
58+
retention-days: 5

0 commit comments

Comments
 (0)