From 6117f445c7c1a6f564f81df47fbf5d1bda0c702b Mon Sep 17 00:00:00 2001 From: RalfBarkow Date: Thu, 6 Jun 2024 10:05:26 +0200 Subject: [PATCH] chore(workflows): add playground.yml --- .github/workflows/playground.yml | 53 ++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 .github/workflows/playground.yml diff --git a/.github/workflows/playground.yml b/.github/workflows/playground.yml new file mode 100644 index 00000000..70aee70e --- /dev/null +++ b/.github/workflows/playground.yml @@ -0,0 +1,53 @@ +# This workflow will build a Java project with Maven +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven + +name: Playground + +on: + push: + branches: [ playground ] + pull_request: + branches: [ playground ] + +jobs: + play-on-ubuntu-latest: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: temurin + - name: Show Toolchain + run: cat ~/.m2/toolchains.xml + - name: Build with Maven + run: mvn -B package --file pom.xml + - run: mkdir staging && cp target/*.jar target/*.exe staging + - uses: actions/upload-artifact@v4 + with: + name: Package (.jar and .exe) + path: staging + + play-on-macos-latest: + + runs-on: macos-latest + + steps: + - uses: actions/checkout@v4 + - name: Set up + uses: actions/setup-java@v4 + with: + java-version: 11 + distribution: temurin + - name: Show Toolchain + run: cat ~/.m2/toolchains.xml + - name: Build with Maven + run: mvn -B package --file pom.xml + - run: mkdir staging && cp target/*.dmg staging + - uses: actions/upload-artifact@v4 + with: + name: Package (.dmg) + path: staging