-
-
Notifications
You must be signed in to change notification settings - Fork 265
61 lines (61 loc) · 1.57 KB
/
ci.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
name: Build
on:
pull_request:
push:
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
platform:
- c
- js
- wasm
- wasi
- wasm-gc
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- uses: actions/setup-node@v4
- uses: gradle/gradle-build-action@v2
- if: ${{ matrix.platform == 'wasi' }}
uses: bytecodealliance/actions/wasmtime/setup@v1
- if: ${{ matrix.platform == 'wasi' }}
run: |
mkdir -p "$HOME/.wasmtime/bin/"
echo 'wasmtime "$@"'> "$HOME/.wasmtime/bin/wasmtime"
chmod +x "$HOME/.wasmtime/bin/wasmtime"
- run: |
platforms=("c" "js" "wasm" "wasi" "wasm-gc")
args=()
for v in "${platforms[@]}"
do
if [[ "${{ matrix.platform }}" != "$v" ]]; then
args+=("-Pteavm.tests.${v}=false")
fi
done
args+=("-Pteavm.localNodeJS=true")
echo "${args[@]}"
./gradlew "${args[@]}" test
- uses: actions/upload-artifact@v3
if: failure()
with:
name: "test-reports-${{ matrix.platform }}"
path: "tests/build/reports/tests/test"
checkstyle:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 11
distribution: adopt
- uses: gradle/gradle-build-action@v2
- run: |
./gradlew check -x test