Skip to content

Commit

Permalink
chore(workflows): add playground.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfBarkow committed Jun 6, 2024
1 parent dccb503 commit 6117f44
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6117f44

Please sign in to comment.