Skip to content

version 0.8.1

version 0.8.1 #228

Workflow file for this run

name: Run checks
on:
push:
branches:
- "*"
pull_request:
branches:
- "**"
jobs:
run-checks:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, windows-latest, macos-latest ]
steps:
- uses: actions/checkout@v2
- name: Cache Gradle stuff
if: ${{ always() }}
uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Cache Konan stuff
if: ${{ always() }}
uses: actions/cache@v2
with:
path: |
~/.konan/
key: ${{ runner.os }}-konan-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-konan-
- name: Setting Java Home
run: echo "JAVA_HOME=$JAVA_HOME_17_X64" >> $GITHUB_ENV
- name: Permission to run gradlew
run: chmod +x ./gradlew
&& chmod +x ./examples/example-js/gradlew
&& chmod +x ./examples/example-jvm/gradlew
&& chmod +x ./examples/example-mpp/gradlew
&& chmod +x ./examples/example-android/gradlew
- name: Install to local maven
run: ./gradlew publishToMavenLocal --stacktrace
- name: Run tests
run: ./gradlew allTest --stacktrace
- name: Build JS example
# Causes an Out-Of-Memory in Windows???
if: runner.os != 'Windows'
run: |
cd ./examples/example-js
./gradlew build --stacktrace
- name: Build JVM example
# Causes an Out-Of-Memory in Windows???
if: runner.os != 'Windows'
run: |
cd ./examples/example-jvm
./gradlew build --stacktrace
- name: Build MPP example
# Causes an Out-Of-Memory in Windows???
if: runner.os != 'Windows'
run: |
cd ./examples/example-mpp
./gradlew build --stacktrace
- name: Build Android example
# Causes an Out-Of-Memory in Windows???
if: runner.os != 'Windows'
run: |
cd ./examples/example-android
./gradlew build --stacktrace
- uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test-reports-${{ matrix.os }}
path: |
i18n4k-core/build/test-results/
i18n4k-generator/build/test-results/
i18n4k-cldr-plural-rules/build/test-results/
i18n4k-gradle-plugin/build/test-results/
examples/example-js/build/test-results/
examples/example-jvm/build/test-results/
examples/example-mmp/build/test-results/
examples/example-android/build/test-results/