-
Notifications
You must be signed in to change notification settings - Fork 12
63 lines (55 loc) · 1.63 KB
/
ci_test_vector_java.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
# This workflow performs test vectors in Java.
name: Library Java Test Vectors
on:
pull_request:
push:
branches:
- main
jobs:
testJava:
strategy:
matrix:
java-version: [ 8, 11, 16, 17 ]
os: [
# Run on ubuntu image that comes pre-configured with docker
ubuntu-latest
]
runs-on: ${{ matrix.os }}
permissions:
id-token: write
contents: read
steps:
- name: Setup DynamoDB Local
uses: rrainn/[email protected]
with:
port: 8000
cors: '*'
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-region: us-west-2
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-DDBEC-Dafny-Role-us-west-2
role-session-name: DDBEC-Dafny-Java-Tests
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Dafny
uses: dafny-lang/[email protected]
with:
dafny-version: '4.2.0'
- name: Setup Java ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java-version }}
- name: Build TestVectors implementation
shell: bash
working-directory: ./TestVectors
run: |
# This works because `node` is installed by default on GHA runners
CORES=$(node -e 'console.log(os.cpus().length)')
make build_java CORES=$CORES
- name: Test TestVectors
working-directory: ./TestVectors
run: |
make test_java