Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move rust builds into separate job #1780

Merged
merged 1 commit into from
Jul 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/ci-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@ jobs:
name: gcc build & test
needs: [clang-formatting-check]
runs-on: kuzu-self-hosted-testing
env:
# Share build cache when building rust API and the example project
CARGO_TARGET_DIR: ${{ github.workspace }}/target
steps:
- uses: actions/checkout@v3

Expand All @@ -40,9 +37,6 @@ jobs:
- name: Java test
run: CC=gcc CXX=g++ make javatest NUM_THREADS=32

- name: Rust test
run: CC=gcc CXX=g++ make rusttest NUM_THREADS=32

- name: Generate coverage report
run: |
lcov -c -d ./ --no-external -o cover.info &&\
Expand Down Expand Up @@ -70,6 +64,20 @@ jobs:
CC=gcc CXX=g++ cmake ..
cmake --build .

rust-build-test:
name: rust build & test
needs: [rustfmt-check]
runs-on: kuzu-self-hosted-testing
env:
# Share build cache when building rust API and the example project
CARGO_TARGET_DIR: ${{ github.workspace }}/target
CARGO_BUILD_JOBS: 32
steps:
- uses: actions/checkout@v3

- name: Rust test
run: CC=gcc CXX=g++ make rusttest NUM_THREADS=32

- name: Rust example
working-directory: examples/rust
run: CC=gcc CXX=g++ cargo build
Expand Down
Loading