-
Notifications
You must be signed in to change notification settings - Fork 75
43 lines (41 loc) · 1.47 KB
/
main.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: Immersive Railroading Build Pipeline
on:
push:
branches:
- 'master'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
branch: [1.7.10-forge, 1.10.2-forge, 1.11.2-forge, 1.12.2-forge, 1.14.4-forge, 1.15.2-forge, 1.16.5-forge, 1.17.1-forge, 1.18.2-forge, 1.19.4-forge, 1.20.1-forge]
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: keyscan
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts
- name: Install deps
run: sudo apt install -y pngquant findutils xvfb
- name: Setup Universal Mod Core (and helpers)
env:
BRANCH: ${{ matrix.branch }}
run: java -jar UMCSetup.jar ${BRANCH} https
- name: Gradle compile
run: ./gradlew classes
- name: Process images
run: find src/main/resources/assets/immersiverailroading/ | grep png | xargs -I foo pngquant -s1 -f --ext .png foo
- name: Run Data (optionalish)
run: xvfb-run --auto-servernum ./gradlew runData || xvfb-run --auto-servernum ./gradlew runData || true
- name: Gradle build
run: ./gradlew build
- name: Gradle publish
env:
MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }}
run: ./gradlew publish
- uses: actions/upload-artifact@v2
with:
name: Immersive Railroading ${{matrix.branch}}
path: build/libs/ImmersiveRailroading-${{matrix.branch}}-*