Skip to content

Add validation for input arguments #83

Add validation for input arguments

Add validation for input arguments #83

Workflow file for this run

name: MacOS Build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
- name: Install ncurses
run: |
pkg-config --static --libs ncurses
ls -la /usr/include/x86_64-linux-gnu
ls -la /usr/lib/x86_64-linux-gnu
ls -la /usr/include
ls -la /usr/include/ncurses
sudo apt-get install libncurses5-dev
dpkg-query -L libncurses5-dev
getconf GNU_LIBC_VERSION
continue-on-error: true
- 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
xcrun --show-sdk-path
xcode-select -p
ls -la /Library/Developer/CommandLineTools/SDKs
continue-on-error: true
- name: Check cinterop output
run: |
ls -la /usr/local/opt/ncurses/lib
ls -la /usr/local/opt/ncurses/include
ls -la build/classes/kotlin/native/main/cinterop/
ls -la build/classes/kotlin/native/main/cinterop/dogcat-cinterop-ncurses.klib-build/
continue-on-error: true
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: dist
path: build/bin/**/*