feat: FFI layer with flatbuffer instead of json or wasm #4
This file contains hidden or 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: Java build | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'java-engine/src/**/*.java' | |
| - 'java-engine/build.gradle.kts' | |
| pull_request: | |
| paths: | |
| - 'java-engine/**/*.java' | |
| workflow_dispatch: | |
| jobs: | |
| build-java: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| runs-on: ${{ matrix.os }} | |
| permissions: | |
| contents: read | |
| security-events: write | |
| actions: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| ## begin build yggdrasil (maybe this can be a separate job) | |
| - name: Install rust | |
| run: | | |
| rustup set auto-self-update disable | |
| rustup toolchain install stable --profile default | |
| rustup show | |
| - name: Rust cache | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Install wasm-target | |
| run: rustup target add wasm32-unknown-unknown | |
| - name: Build yggdrasil wasm | |
| working-directory: pure-wasm | |
| run: cargo build --release --target wasm32-unknown-unknown | |
| ## end build yggdrasil | |
| ## Test requirements | |
| - name: Get client spec | |
| uses: actions/checkout@v3 | |
| with: | |
| repository: Unleash/client-specification | |
| ref: v5.1.9 | |
| path: client-specification | |
| - name: Setup Java | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: 21 | |
| cache: 'gradle' | |
| distribution: 'temurin' | |
| - name: Check Code Format | |
| working-directory: ./java-engine | |
| run: ./gradlew spotlessCheck | |
| - name: Run tests | |
| working-directory: ./java-engine | |
| run: ./gradlew test |