Update toolchain #207
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
name: build | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- "**" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ macOS-latest ] | |
# os: [ macOS-latest, ubuntu-18.04 ] GitHub actions removed ubuntu-18.04 | |
# os: [ macOS-latest, windows-latest, ubuntu-18.04 ] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Checkout the repo | |
uses: actions/checkout@v2 | |
- name: Install msys2 | |
if: matrix.os == 'windows-latest' | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
update: true | |
install: git mingw-w64-x86_64-toolchain libsqlite | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Cache gradle | |
uses: actions/cache@v2 | |
with: | |
path: ~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Cache konan | |
uses: actions/cache@v2 | |
with: | |
path: ~/.konan | |
key: ${{ runner.os }}-gradle-${{ hashFiles('*.gradle.kts') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Update Environment Variables | |
if: matrix.os == 'windows-latest' | |
shell: bash | |
run: | | |
echo "c:\msys64\mingw64\bin" >> $GITHUB_PATH | |
- name: Build | |
run: ./gradlew build --no-daemon --stacktrace | |
env: | |
GRADLE_OPTS: -Dorg.gradle.configureondemand=true -Dkotlin.incremental=false -Dorg.gradle.jvmargs="-Xmx3g -XX:MaxPermSize=2048m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:MaxMetaspaceSize=512m" |