Skip to content

Update main.yml

Update main.yml #4

Workflow file for this run

name: MacOS Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Install Kotlin
uses: sdkman/sdkman-action@master
with:
candidate: kotlin
version: '1.9.22'
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew assemble
continue-on-error: true
- name: Print environment information
run: |
uname -a
java -version
kotlin -version
locate ncurses.h
xcrun --show-sdk-path
- name: Check cinterop output
run: ls -la build/classes/kotlin/native/main/cinterop/dogcat-cinterop-ncurses.klib-build/
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: build/bin/native/*