Skip to content

add scopeSelf for slots #1

add scopeSelf for slots

add scopeSelf for slots #1

Workflow file for this run

name: JVM Bindings ☕
permissions:
contents: read
on:
push:
branches:
- 'master'
paths:
- '**/jvm_bindings.yml'
- '**/bindings/java/**'
- '**/bindings/java.nim'
- '**/bindings/java_types.nim'
pull_request:
paths:
- '**/jvm_bindings.yml'
- '**/bindings/java/**'
- '**/bindings/java.nim'
- '**/bindings/java_types.nim'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
nim_version:
- '2.0.0'
java_version:
- '16'
gradle_version:
- '7.4.2'
env:
TIMEOUT_EXIT_STATUS: 124
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java_version }}
distribution: 'temurin'
architecture: x64
cache: 'gradle'
- name: Setup Gradle 🐘
uses: gradle/[email protected]
id: setup-gradle
with:
gradle-version: ${{ matrix.gradle_version }}
- name: Cache nimble
id: cache-nimble
uses: actions/cache@v3
with:
path: ~/.nimble
key: ${{ runner.os }}-nimble-${{ hashFiles('*.nimble') }}
- name: Setup Nim 👑
uses: jiro4989/setup-nim-action@v1
with:
nim-version: ${{ matrix.nim_version }}
- name: Install Nim Deps 👑
run: |
nimble install -y jnim
nimble install -d happyx
nimble list --installed
nim -v
- name: JVM Bindings ☕
run: |
cd src
echo "Unix module"
nim c -d:noSignalHandler -d:export2jvm -d:release -d:httpx --app:lib --threads:on --opt:speed --mm:arc --out:../bindings/java/src/main/resources/happyx.so happyx.nim
cd ..
- name: Build Java Project ☕
run: |
cd bindings/java
gradle build --scan