From e34d2e17f4386fa714c671803347f14bbec85031 Mon Sep 17 00:00:00 2001 From: Luna <83607009+LunaWasFlagged@users.noreply.github.com> Date: Fri, 3 Sep 2021 11:52:09 -0300 Subject: [PATCH] Add GitHub Actions workflow (#6) --- .github/workflows/main.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..9cd1784 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,33 @@ +name: Maven CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build_and_test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 16 + uses: actions/setup-java@v1 + with: + java-version: 16 + + - name: Cache maven packages to speed up build + uses: actions/cache@v1 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Build with Maven + run: mvn -B package --file pom.xml + + - uses: actions/upload-artifact@v1 + with: + name: iControlU + path: target/iControlU.jar