Solve idea resolution when toolbox is not installed #14
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
# https://help.github.com/en/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
# https://help.github.com/en/actions/language-and-framework-guides/publishing-java-packages-with-gradle | |
name: Publish | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
# https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners | |
# https://help.github.com/en/actions/configuring-and-managing-workflows/configuring-a-workflow#configuring-a-build-matrix | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
# setup | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'zulu' | |
java-version: '11' | |
# Cache | |
- name: Cache Gradle wrapper | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/wrapper | |
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/*') }} | |
restore-keys: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/*') }} | |
- name: Cache Gradle packages | |
uses: actions/cache@v1 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle.kts') }} | |
restore-keys: ${{ runner.os }}-gradle | |
# Build | |
- name: Build | |
run: ./gradlew build app:installShadowDist app:nativeImage --continue | |
- uses: actions/upload-artifact@v1 | |
if: runner.os == 'Linux' | |
with: | |
name: aidea-jar | |
path: app/build/install/app-shadow/lib/aidea-all.jar | |
# Publish GraalVM | |
- uses: actions/upload-artifact@v1 | |
if: runner.os == 'Linux' | |
with: | |
name: aidea-linux | |
path: app/build/graal/aidea | |
- uses: actions/upload-artifact@v1 | |
if: runner.os == 'macOS' | |
with: | |
name: aidea-macos | |
path: app/build/graal/aidea |