Skip to content

🏗️ qr-code-app standalone #4

🏗️ qr-code-app standalone

🏗️ qr-code-app standalone #4

# Also see https://github.com/beryx-gist/badass-runtime-example-javafx/blob/master/.github/workflows/gradle.yml
name: 🏗️ qr-code-app standalone
on:
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-11, windows-2019]
fail-fast: false
name: ${{ matrix.os }}
steps:
- name: Git checkout
uses: actions/checkout@v4.1.1
- name: Set up JDK
uses: actions/setup-java@v3.13.0
with:
java-version: 17
distribution: 'temurin'
- name: Echo JAVA_HOME
run: echo $JAVA_HOME
- name: Execute qr-code-app:runtime
run: ./gradlew --info --stacktrace qr-code-app:runtime
- name: Set distribution os env var
run: |
OS_NAME=${{ matrix.os }}
if [[ "$OS_NAME" == *-* ]]; then
OS_NAME=$(echo "$OS_NAME" | awk -F'-' '{print $1}')
fi
echo "OS=${OS_NAME}" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
with:
name: qr-code-app-${{ env.OS }}
path: qr-code-app/build/qr-code-with-logo-app/