2019-09-27 07:56:53 +00:00
|
|
|
name: Build
|
2019-09-14 08:16:13 +00:00
|
|
|
|
2019-09-30 14:37:52 +00:00
|
|
|
on: [push, pull_request]
|
2019-09-14 08:16:13 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2019-12-03 23:26:13 +00:00
|
|
|
name: Build
|
2019-09-14 08:16:13 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2020-02-08 11:02:09 +00:00
|
|
|
- uses: actions/checkout@v2
|
2019-09-14 08:16:13 +00:00
|
|
|
|
|
|
|
- name: Set up JDK 1.8
|
|
|
|
uses: actions/setup-java@v1
|
|
|
|
with:
|
|
|
|
java-version: 1.8
|
|
|
|
|
2020-02-08 11:17:45 +00:00
|
|
|
- name: Cache gradle dependencies
|
|
|
|
uses: actions/cache@v1
|
|
|
|
with:
|
|
|
|
path: ~/.gradle/caches
|
|
|
|
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle.properties') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-gradle-
|
|
|
|
|
2019-09-14 08:16:13 +00:00
|
|
|
- name: Build with Gradle
|
2020-02-08 11:02:09 +00:00
|
|
|
run: ./gradlew build --no-daemon || ./gradlew build --no-daemon
|
2019-12-03 23:26:13 +00:00
|
|
|
|
2020-01-01 00:08:31 +00:00
|
|
|
- name: Upload Jar
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
|
|
|
name: CC-Tweaked
|
|
|
|
path: build/libs
|
|
|
|
|
2019-12-03 23:26:13 +00:00
|
|
|
lint-lua:
|
|
|
|
name: Lint Lua
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
|
|
|
- name: Lint Lua code
|
|
|
|
run: |
|
|
|
|
test -d bin || mkdir bin
|
2020-04-09 21:15:06 +00:00
|
|
|
test -f bin/illuaminate || wget -q -Obin/illuaminate https://squiddev.cc/illuaminate/linux-x86-64/illuaminate
|
2019-12-03 23:26:13 +00:00
|
|
|
chmod +x bin/illuaminate
|
2019-12-08 17:10:58 +00:00
|
|
|
bin/illuaminate lint
|
2020-01-23 15:11:50 +00:00
|
|
|
|
|
|
|
- name: Check whitespace
|
|
|
|
run: python3 tools/check-lines.py
|