Files
runelite/.github/workflows/CI.yml
Tomas Slusny c4f019aff0 Switch to GitHub actions
Signed-off-by: Tomas Slusny <slusnucky@gmail.com>
2020-10-30 14:36:20 -04:00

33 lines
679 B
YAML

name: CI
on: [ push, pull_request ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.m2/repository
~/.cache/runelite
key: ${{ runner.os }}-cache-${{ hashFiles('**/pom.xml', '**/build.sh') }}
restore-keys: |
${{ runner.os }}-cache-
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
java-version: 11
- name: Build
run: ./ci/build.sh
- name: Remove build artifacts
run: rm -rf ~/.m2/repository/net/runelite