From 5db30cd04bac9d81fa5138d43ced82f5b6d62b10 Mon Sep 17 00:00:00 2001 From: Bixilon Date: Thu, 2 Dec 2021 09:50:04 +0100 Subject: [PATCH] build on macos --- .github/workflows/maven.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ec2d783a4..ebe5fdcac 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,7 +5,7 @@ name: Java CI with Maven on: push: - branches: [ master ] + branches: [ master, macos-build ] pull_request: branches: [ master ] @@ -54,3 +54,21 @@ jobs: with: name: minosoft-win64 path: target/Minosoft-*.jar + build-mac: + runs-on: macos-11 + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + java-version: '11' + distribution: 'adopt' + cache: maven + - name: Build with Maven + run: mvn -B package --file pom.xml + - name: Upload macOS build + uses: actions/upload-artifact@v2 + with: + name: macos-build + path: target/Minosoft-*.jar +