Skip to content

Commit

Permalink
github-workflows-caching
Browse files Browse the repository at this point in the history
  • Loading branch information
pragmaxim committed Aug 27, 2024
1 parent 8ce0776 commit 732a0a7
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,37 @@ jobs:
- name: Checkout the repository
uses: actions/checkout@v3

- name: Cache cargo registry
uses: actions/cache@v3
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-registry-
- name: Cache cargo index
uses: actions/cache@v3
with:
path: ~/.cargo/index
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-index-
- name: Cache cargo build
uses: actions/cache@v3
with:
path: target
key: ${{ runner.os }}-cargo-build-${{ hashFiles('**/Cargo.lock') }}-${{ hashFiles('**/Cargo.toml') }}
restore-keys: |
${{ runner.os }}-cargo-build-
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
components: rustfmt, clippy

- name: Install wasm-pack
run: cargo install wasm-pack

- name: Build and Start the Actix-Web Server
run: |
cargo build --manifest-path server/Cargo.toml
Expand All @@ -38,6 +59,9 @@ jobs:
sleep 2
done
- name: Install wasm-pack
run: cargo install wasm-pack

- name: Run WebAssembly Tests with wasm-bindgen-test
run: |
cd reqwest-client
Expand Down

0 comments on commit 732a0a7

Please sign in to comment.