Skip to content

Commit

Permalink
CI: use cargo-binstall to reduce the build time
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Jun 30, 2023
1 parent 0e7d6d9 commit ff0aefd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,18 @@ jobs:
run: zypper --non-interactive install rustup

- name: Install required packages
run: zypper --non-interactive install python-langtable-data openssl-3 libopenssl-3-devel
run: zypper --non-interactive install python-langtable-data openssl-3 libopenssl-3-devel jq

- name: Install Rust toolchains
run: rustup toolchain install stable

- name: Install cargo-binstall
uses: taiki-e/install-action@v2
with:
tool: cargo-binstall

- name: Install Tarpaulin (for code coverage)
run: cargo install cargo-tarpaulin
run: cargo-binstall --no-confirm cargo-tarpaulin

- name: Run the tests
run: cargo tarpaulin --out lcov --output-dir coverage
Expand All @@ -210,8 +215,9 @@ jobs:
with:
base-path: ./rust
path-to-lcov: ./rust/coverage/lcov.info
flag-name: rust-backend
flag-name: rust_backend
parallel: true
debug: true

integration-tests:
timeout-minutes: 60
Expand Down Expand Up @@ -299,7 +305,7 @@ jobs:
finish:
runs-on: ubuntu-latest

needs: [frontend_build, ruby_tests]
needs: [frontend_build, ruby_tests, rust_ci]

steps:

Expand Down

0 comments on commit ff0aefd

Please sign in to comment.