-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 1.14 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
name: build
on: [ pull_request, push ]
jobs:
build:
strategy:
matrix:
java: [ 17 ]
os: [ ubuntu-24.04 ]
runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, 'skip ci') && !contains(github.event.head_commit.message, 'ci skip')"
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup java ${{ matrix.java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: gradle
- name: Build
run: ./gradlew build
- name: capture fabric build artifacts
uses: actions/upload-artifact@v4
with:
name: StackDeobfuscator-Fabric-Artifacts
path: build/libs/StackDeobfuscatorFabric-*
if-no-files-found: error
- name: capture web build artifacts
uses: actions/upload-artifact@v4
with:
name: StackDeobfuscator-Web-Artifacts
path: build/libs/StackDeobfuscatorWeb-*
if-no-files-found: error