mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-12-15 12:40:30 +00:00
40 lines
783 B
YAML
40 lines
783 B
YAML
name: Build
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up JDK 1.8
|
|
uses: actions/setup-java@v1
|
|
with:
|
|
java-version: 1.8
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build --no-daemon
|
|
|
|
- name: Upload Jar
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: CC-Tweaked
|
|
path: build/libs
|
|
|
|
lint-lua:
|
|
name: Lint Lua
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Lint Lua code
|
|
run: |
|
|
test -d bin || mkdir bin
|
|
test -f bin/illuaminate || wget -q -Obin/illuaminate https://squiddev.cc/illuaminate/bin/illuaminate
|
|
chmod +x bin/illuaminate
|
|
bin/illuaminate lint
|