forked from marcoroth/herb
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1001 Bytes
/
java.yml
File metadata and controls
53 lines (41 loc) · 1001 Bytes
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
name: Java
on:
push:
branches:
- main
pull_request:
permissions:
contents: read
jobs:
build:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Render Templates
run: bundle exec rake templates
- name: Compile Herb
run: bundle exec rake make
- name: Build JNI library
run: make jni
working-directory: java
- name: Compile Java classes
run: make java
working-directory: java
- name: Run tests
run: ./run_tests.sh
working-directory: java
- name: Test CLI version command
run: ./bin/herb-java version
working-directory: java