mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-09 08:15:09 +03:00
- use actions/setup-java@v2 (provides caching gradle files) - use pre-installed Java 8 and 11 - no longer build on Java 9 and 14 - not yet build on Java 17 because used Gradle version 6.8.2 does not support it can not yet upgrade to Gradle 7.x because nokee plugins (for C++) does not support it
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
# https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
|
|
|
|
name: Native Libraries
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- '*'
|
|
tags:
|
|
- '[0-9]*'
|
|
paths:
|
|
- 'flatlaf-natives/flatlaf-natives-windows/**'
|
|
- '.github/workflows/natives.yml'
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
paths:
|
|
- 'flatlaf-natives/flatlaf-natives-windows/**'
|
|
- '.github/workflows/natives.yml'
|
|
|
|
jobs:
|
|
Windows:
|
|
runs-on: windows-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: gradle/wrapper-validation-action@v1
|
|
|
|
- name: Setup Java 11
|
|
uses: actions/setup-java@v2
|
|
with:
|
|
java-version: 11
|
|
distribution: adopt
|
|
cache: gradle
|
|
|
|
- name: Build with Gradle
|
|
# --no-daemon is necessary on Windows otherwise caching Gradle would fail with:
|
|
# tar.exe: Couldn't open ~/.gradle/caches/modules-2/modules-2.lock: Permission denied
|
|
run: ./gradlew :flatlaf-natives-windows:build --no-daemon
|
|
|
|
- name: Upload artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: FlatLaf-natives-windows-build-artifacts
|
|
path: |
|
|
flatlaf-natives/flatlaf-natives-windows/build
|