generated from TBD54566975/tbd-project-template
-
Notifications
You must be signed in to change notification settings - Fork 17
75 lines (70 loc) · 1.97 KB
/
bound-ci-kt.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Kotlin CI
on:
push:
branches:
- main
pull_request:
jobs:
aarch64-apple-darwin:
runs-on: macos-latest
name: Load shared library on aarch64-apple-darwin target
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Run tests
run: |
cd bound/kt
mvn '-Dtest=SystemTargetTest#can load shared library' test
x86_64-apple-darwin:
runs-on: macos-12
name: Load shared library on x86_64-apple-darwin target
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Run tests
run: |
cd bound/kt
mvn '-Dtest=SystemTargetTest#can load shared library' test
x86_64-unknown-linux-gnu:
runs-on: ubuntu-latest
name: Load shared library on x86_64-unknown-linux-gnu target
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: 'adopt'
java-version: '11'
- name: Run tests
run: |
cd bound/kt
mvn '-Dtest=SystemTargetTest#can load shared library' test
x86_64-unknown-linux-musl:
runs-on: ubuntu-latest
container:
image: alpine:latest
name: Load shared library on x86_64-unknown-linux-musl target
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
apk update
apk add openjdk11
apk add maven
apk add bash
- name: Set JAVA_HOME
run: |
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export PATH=$JAVA_HOME/bin:$PATH
- name: Change directory to bound/kt and run tests
run: |
cd bound/kt
mvn '-Dtest=SystemTargetTest#can load shared library' test