Skip to content
New issue

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

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

Already on GitHub? # to your account

ci: utilize cargo-hack partitions to speed up tests #265

Merged
merged 3 commits into from
Jan 7, 2025
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
17 changes: 7 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,12 @@ jobs:
toolchain:
- stable
- nightly
partition:
- 1/4
- 2/4
- 3/4
- 4/4
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@main
with:
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Checkout sources
uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
Expand All @@ -109,7 +106,7 @@ jobs:
tool: cargo-hack
- name: Install Protoc # for pulsar tests
uses: arduino/setup-protoc@v3
- name: Install the latest Oracle instant client
- name: Install the latest Oracle instant client # for oracle tess
run: |
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
curl -Lo basic.zip https://download.oracle.com/otn_software/linux/instantclient/instantclient-basic-linuxx64.zip
Expand All @@ -119,4 +116,4 @@ jobs:
echo LD_LIBRARY_PATH=$IC_DIR:$LD_LIBRARY_PATH >> $GITHUB_ENV
echo $IC_DIR >> $GITHUB_PATH
- name: Tests
run: cargo hack test --each-feature --clean-per-run --exclude-all-features
run: cargo hack test --each-feature --exclude-all-features --partition ${{ matrix.partition }}
Loading