-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.1 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-22.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@v3
- name: Validate gradle wrapper
uses: gradle/wrapper-validation-action@v1
- name: Setup java ${{ matrix.java }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.java }}
distribution: temurin
cache: gradle
- name: Build
run: ./gradlew build
- name: capture fabric build artifacts
uses: actions/upload-artifact@v3
with:
name: StackDeobfuscator-Fabric-Artifacts
path: fabric/build/libs
if-no-files-found: error
- name: capture web build artifacts
uses: actions/upload-artifact@v3
with:
name: StackDeobfuscator-Web-Artifacts
path: web/build/libs
if-no-files-found: error