From f7bd14a8be30d066a696f29a402f27e5a1f986ab Mon Sep 17 00:00:00 2001 From: Andrew Wells <130512013+andrewmwells-amazon@users.noreply.github.com> Date: Wed, 20 Mar 2024 12:44:10 -0700 Subject: [PATCH] quick fix for downstream java build (#741) Signed-off-by: Andrew Wells --- .github/workflows/build_downstream_deps.yml | 25 +++++++++++---------- 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build_downstream_deps.yml b/.github/workflows/build_downstream_deps.yml index 8f024f98b..9af0bcfa7 100644 --- a/.github/workflows/build_downstream_deps.yml +++ b/.github/workflows/build_downstream_deps.yml @@ -69,20 +69,21 @@ jobs: repository: cedar-policy/cedar-java ref: ${{ needs.get-branch-name.outputs.branch_name }} path: ./cedar-java - - name: checkout cedar - uses: actions/checkout@v4 - with: - path: cedar-java/cedar - - name: configure cedar-java - working-directory: cedar-java/CedarJava - shell: bash - run: bash config.sh run_int_tests - - name: build cedar-java/CedarJavaFFI + - name: Prepare Rust Build + run: rustup update stable && rustup default stable + - name: Check FFI Formatting working-directory: cedar-java/CedarJavaFFI - run: RUSTFLAGS="-D warnings" cargo build - - name: build cedar-java/CedarJava + run: cargo fmt --all --check + - name: Install Zig + run: sudo snap install zig --beta --classic + - name: Build FFI and Java Libraries + working-directory: cedar-java/CedarJava + env: + MUST_RUN_CEDAR_INTEGRATION_TESTS: 1 + run: ./gradlew build + - name: Generate Java Documentation working-directory: cedar-java/CedarJava - run: export MUST_RUN_CEDAR_INTEGRATION_TESTS=1 && ./gradlew build + run: ./gradlew javadoc build-cedar-examples-hello-world: needs: get-branch-name