-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(workflows): add playground.yml
- Loading branch information
1 parent
dccb503
commit 6117f44
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |