Skip to content

Commit

Permalink
fix downstream java build (#762)
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Wells <anmwells@amazon.com>
  • Loading branch information
andrewmwells-amazon authored Mar 29, 2024
1 parent 1906bf5 commit 7f42da2
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/build_downstream_deps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,23 @@ jobs:
run: source ~/.profile && source ../set_env_vars.sh && RUSTFLAGS="--cfg=fuzzing -D warnings" cargo build

cedar-java:
name: CedarJava
runs-on: ubuntu-latest
needs: get-branch-name
strategy:
matrix:
toolchain:
- stable
os: [ubuntu-latest, macos-14]
include:
- os: ubuntu-latest
name: Build on Linux
zigInstall: sudo snap install zig --beta --classic
- os: macos-14
name: Build on macOS
zigInstall: brew install zig
runs-on: ${{ matrix.os }}
name: ${{ matrix.name }}
steps:
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Install Zig
run: ${{ matrix.zigInstall }}
- name: Checkout cedar-java
uses: actions/checkout@v3
with:
Expand All @@ -73,16 +81,21 @@ jobs:
uses: actions/checkout@v3
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: 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: Setup Java JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'corretto'
cache: 'gradle'
- name: Build FFI and Java Libraries
working-directory: cedar-java/CedarJava
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
Expand Down

0 comments on commit 7f42da2

Please sign in to comment.