Skip to content

Commit

Permalink
Merge pull request #1780 from kuzudb/rust-job
Browse files Browse the repository at this point in the history
Move rust builds into separate job
  • Loading branch information
mewim committed Jul 8, 2023
2 parents bfb4fc6 + 16ee08a commit e4b85c7
Showing 1 changed file with 14 additions and 6 deletions.
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

0 comments on commit e4b85c7

Please sign in to comment.