Skip to content

Commit

Permalink
wip gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
edigonzales committed Oct 23, 2022
1 parent 861a7f8 commit df01665
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 94 deletions.
74 changes: 16 additions & 58 deletions .github/workflows/main.yaml
Expand Up @@ -60,11 +60,6 @@ jobs:
mkdir -p ${{ env.INSTALL_DIR }}
tar -C ${{ env.INSTALL_DIR }} -xzf libericavm.zip
# - name: 'Download ili2c'
# run: |
# curl -L https://downloads.interlis.ch/ili2c/ili2c-5.3.0.zip -o ili2c.zip
# unzip ili2c.zip -d ili2c-dir

- name: 'Create native image'
run: |
export JAVA_HOME=$PWD/${{ env.NIK_HOME }}/Contents/Home
Expand Down Expand Up @@ -101,61 +96,24 @@ jobs:
run: |
ls -la /home/runner/work/ili2c-native/ili2c-native/artifacts-native
ls -la /home/runner/work/ili2c-native/ili2c-native/
- name: Set up JDK 11
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: 'liberica'
java-version: '11'


# - name: 'Download zipped ili2c release'
# run: |
# curl -L https://downloads.interlis.ch/ili2c/ili2c-${{ github.event.inputs.version }}.zip -o ili2c.zip

# - name: 'Unzip ili2c release'
# run: |
# unzip ili2c.zip

# - name: 'Setup Java 17'
# uses: actions/setup-java@v3
# with:
# java-version: 17
# distribution: 'liberica'

# - name: 'Get dependencies (jdeps)'
# run: |
# echo "DEPS=$(jdeps --class-path './*' --multi-release base -recursive --ignore-missing-deps --print-module-deps ili2c.jar)" >> $GITHUB_ENV
# shell: bash

# - name: 'Create JRE (jlink)'
# run: |
# jlink --add-modules ${{env.DEPS}} --output ili2c-jre

# - name: 'Create package (jpackage)'
# run: |
# jpackage --icon ${{matrix.icon}} --name ili2c --type ${{matrix.package}} --input . --main-jar ili2c.jar -d output --runtime-image ili2c-jre --app-version ${{ github.event.inputs.version }}
# shell: bash

# - name: List all files in output directory
# run: ls -la output
# shell: bash
java-version: '17'

# - name: List all files in project root directory
# run: ls -la
# shell: bash

# - name: 'Setup Java 8'
# uses: actions/setup-java@v3
# with:
# java-version: 8
# distribution: 'liberica'
- uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
# - name: Upload file to bucket
# shell: bash
# run: |
# ./gradlew uploadFile
# env:
# FILENAME: ${{matrix.asset_prefix}}${{ github.event.inputs.version }}${{matrix.asset_suffix}}.${{matrix.package}}
# AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# AWS_REGION: "eu-central-1"
- name: Release distributions
run: |
./gradlew -i jreleaserRelease
env:
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ success() && github.ref == 'refs/heads/main'}}
36 changes: 0 additions & 36 deletions gradle/versioning.gradle

This file was deleted.

0 comments on commit df01665

Please sign in to comment.