make sure ulimit is increase for uring tests

This commit is contained in:
Rob Ede 2021-11-21 21:02:39 +00:00
parent 0cd921b758
commit 7557f0756c
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 5 additions and 3 deletions

View File

@ -85,10 +85,12 @@ jobs:
- name: tests (io-uring) - name: tests (io-uring)
if: matrix.target.os == 'ubuntu-latest' if: matrix.target.os == 'ubuntu-latest'
uses: actions-rs/cargo@v1
timeout-minutes: 60 timeout-minutes: 60
run: | run: >
cargo test -p=actix-files --all-features sudo bash -c "ulimit -Sl 512
&& ulimit -Hl 512
&& PATH=$PATH:/usr/share/rust/.cargo/bin
&& RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo test -p=actix-files --all-features"
- name: Clear the cargo caches - name: Clear the cargo caches
run: | run: |