Skip to content

Build library (kotlin) #7

Build library (kotlin)

Build library (kotlin) #7

Workflow file for this run

name: Build library (kotlin)
on:
workflow_dispatch:
jobs:
build:
name: Build kotlin bindings
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
- name: Install rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
- uses: de-vri-es/setup-git-credentials@v2
with:
credentials: ${{ secrets.WORFKLOW_TOKEN_LIBRARIES }}
- name: Cache rust modules
id: cache-rust
uses: actions/cache@v3
env:
cache-name: cache-rust-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: target
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Build kotlin bindings
run: |
bash kotlin-build.sh
- name: Save kotlin artifact
uses: actions/upload-artifact@v4
with:
name: kotlin-bindings
path: |
bindings/kotlin