-
-
Notifications
You must be signed in to change notification settings - Fork 20
33 lines (33 loc) · 959 Bytes
/
test.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
name: Test
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
java: [17-jdk]
runs-on: ubuntu-20.04
container:
image: openjdk:${{ matrix.java }}
options: --user root
steps:
- uses: actions/checkout@v1
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build test --stacktrace
buildNatives:
strategy:
matrix:
target: [ x86_64, i686, aarch64 ]
runs-on: windows-2019
steps:
# TODO: Fix macOS in future
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: '17'
- uses: gradle/wrapper-validation-action@v1
- run: ./gradlew build copyForNative --stacktrace
- run: rustup target add ${{ matrix.target }}-pc-windows-msvc
- name: Run Cargo
run: cargo check --target ${{ matrix.target }}-pc-windows-msvc
working-directory: ./native