-
Notifications
You must be signed in to change notification settings - Fork 21
44 lines (41 loc) · 1.21 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
name: Cargo Build & Test
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test_cedar_java_ffi:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
steps:
- name: Checkout Cedar Examples
uses: actions/checkout@v3
- name: Checkout cedar
uses: actions/checkout@v3
with:
repository: cedar-policy/cedar
ref: main
path: ./cedar
- name: rustup
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: cargo fmt
working-directory: ./CedarJavaFFI
run: cargo fmt --all --check
- name: configure
working-directory: ./CedarJava
shell: bash
run: bash config.sh run_int_tests
- name: cargo rustc
working-directory: ./CedarJavaFFI
run: RUSTFLAGS="-D warnings -F unsafe-code" cargo build --verbose
- name: cargo test
working-directory: ./CedarJavaFFI
run: cargo test --verbose
- name: Build CedarJava
working-directory: ./CedarJava
shell: bash
run: export MUST_RUN_CEDAR_INTEGRATION_TESTS=1 && ./gradlew build