-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (40 loc) · 1.42 KB
/
build_kotlin.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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