Skip to content

Commit

Permalink
Attempt to speed up rust ffi building again
Browse files Browse the repository at this point in the history
  • Loading branch information
kegsay committed Jan 9, 2024
1 parent 799163b commit d66d588
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ jobs:
cache-dependency-path: "js-sdk/yarn.lock"
- name: Setup | Go
uses: actions/setup-go@v4
- name: Setup | Rust stable
uses: ATiltedTree/setup-rust@v1
- name: Setup | Rust
uses: dtolnay/rust-toolchain@stable
with:
rust-version: stable
toolchain: stable
- name: "Install Complement Dependencies"
run: |
sudo apt-get update && sudo apt-get install -y libolm3 libolm-dev
Expand All @@ -43,10 +43,18 @@ jobs:
(cd js-sdk && yarn install --frozen-lockfile && yarn build)
cp -r ./js-sdk/dist/. ./internal/api/dist
- run: rustup toolchain install stable --profile minimal
- uses: Swatinem/rust-cache@v2
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
cache-all-crates: "true"
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- name: Build Rust FFI bindings
run: |
mkdir rust-sdk
Expand Down

0 comments on commit d66d588

Please sign in to comment.