-
Notifications
You must be signed in to change notification settings - Fork 143
51 lines (42 loc) · 1.23 KB
/
java-wasm-bindings.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
name: Java WASM bindings
on:
push:
paths:
- ".github/workflows/java-wasm-bindings.yml"
- "include/"
- "src/"
- "*akefile*"
branches:
- main
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: head
bundler-cache: true
- name: rake templates
run: PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS=1 bundle exec rake templates
- name: Set up WASI-SDK
run: |
wget https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-21/wasi-sdk-21.0-linux.tar.gz
tar xvf wasi-sdk-21.0-linux.tar.gz
- name: Build the project
run: make java-wasm WASI_SDK_PATH=$(pwd)/wasi-sdk-21.0 PRISM_SERIALIZE_ONLY_SEMANTICS_FIELDS=1
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
cache: maven
- name: Run the tests
run: mvn -B install
working-directory: java-wasm
- uses: actions/upload-artifact@v3
with:
name: prism.wasm
path: java-wasm/src/test/resources/prism.wasm