-
-
Notifications
You must be signed in to change notification settings - Fork 11
81 lines (66 loc) · 1.72 KB
/
build.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build
permissions: read-all
on:
workflow_dispatch:
push:
branches:
- "main"
paths:
- 'src/**'
- 'generate/**'
- '**gradle**'
- 'package.json'
- 'pnpm-lock.yaml'
pull_request:
paths:
- 'src/**'
- 'generate/**'
- '**gradle**'
- 'package.json'
- 'pnpm-lock.yaml'
jobs:
build:
name: Build Plugin
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: 17
cache: 'gradle'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Enable Corepack
run: corepack enable
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- name: Install Deps
run: pnpm install
- name: Generate Icons
run: pnpm build
- name: Check Formatting
run: ./gradlew checkFormatting
- name: Run Static Analysis
run: ./gradlew runStaticAnalysis
continue-on-error: true
- name: Test & Build Plugin
run: ./gradlew buildPlugin
- name: Upload JAR(s)
uses: actions/upload-artifact@v4
with:
name: "Catppuccin Icons"
path: build/libs/*.jar
- name: Output Unreleased Changes
run: |
echo "# 🚧 Unreleased 🚧" >> $GITHUB_STEP_SUMMARY
echo "$(./gradlew getChangelog --unreleased --no-header --console=plain -q)" >> $GITHUB_STEP_SUMMARY